# Need a complete XML Filter example

**URL:** <https://discuss.elastic.co/t/need-a-complete-xml-filter-example/35398>\
**Category:** Logstash\
**Created:** [November 24, 2015, 8:59am UTC](https://discuss.elastic.co/t/need-a-complete-xml-filter-example/35398 "2015-11-24T08:59:37Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Mr.Nice](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mr.nice/32/11458_2.png) [@Mr.Nice](https://discuss.elastic.co/u/Mr.Nice)\
**Post date:** [August 18, 2016, 3:09pm UTC](https://discuss.elastic.co/t/need-a-complete-xml-filter-example/35398/4 "2016-08-18T15:09:49Z")

</div>

Hi Abdul,

have you seen this topic ?  
[https://discuss.elastic.co/t/help-with-parsing-xml-content/27445/3](https://discuss.elastic.co/t/help-with-parsing-xml-content/27445/3)

It's been usefull for me to understand Xpath to parse xml..

You should be have something like

> ```
> filter {
> xml {
> source => "yourxml"
> store_xml => false
> xpath => ["/testResults/httpSample/@t", "t_value"]
> xpath => ["/testResults/httpSample/@ts", "ts_value"]
> [......]        
> 
> ```

Regards,  
Mr.Nice

---

_[View the full topic](https://discuss.elastic.co/t/need-a-complete-xml-filter-example/35398)._
