# XML has a varying schema...Unable to give Xpath

**URL:** <https://discuss.elastic.co/t/xml-has-a-varying-schema-unable-to-give-xpath/145086>\
**Category:** Logstash\
**Created:** [August 20, 2018, 5:30am UTC](https://discuss.elastic.co/t/xml-has-a-varying-schema-unable-to-give-xpath/145086 "2018-08-20T05:30:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dinesh1](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@dinesh1](https://discuss.elastic.co/u/dinesh1)\
**Post date:** [August 20, 2018, 5:30am UTC](https://discuss.elastic.co/t/xml-has-a-varying-schema-unable-to-give-xpath/145086/1 "2018-08-20T05:30:23Z")

</div>

Hi

My XML logs has a varying schema and it's failed to define XPath expressions.  
How to parse XML logs without Xpath...?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 20, 2018, 7:02am UTC](https://discuss.elastic.co/t/xml-has-a-varying-schema-unable-to-give-xpath/145086/2 "2018-08-20T07:02:58Z")

</div>

Duplicate of [How to parse irregular xml logs](https://discuss.elastic.co/t/how-to-parse-irregular-xml-logs/144646).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 17, 2018, 7:03am UTC](https://discuss.elastic.co/t/xml-has-a-varying-schema-unable-to-give-xpath/145086/3 "2018-09-17T07:03:03Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
