# Create nested field with XPath

**URL:** <https://discuss.elastic.co/t/create-nested-field-with-xpath/98230>\
**Category:** Logstash\
**Created:** [August 24, 2017, 12:09pm UTC](https://discuss.elastic.co/t/create-nested-field-with-xpath/98230 "2017-08-24T12:09:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 24, 2017, 8:09pm UTC](https://discuss.elastic.co/t/create-nested-field-with-xpath/98230/2 "2017-08-24T20:09:52Z")

</div>

It appears you're asking the same question as here:

> [@Xml parser with xpath giving wrong result in xml filter plugin](https://discuss.elastic.co/t/xml-parser-with-xpath-giving-wrong-result-in-xml-filter-plugin/97666/):
>
> Hi All i am having a xml filter, which looks like this xml { source =\> "message" target =\> "message\_parsed" add\_tag =\> ["xml\_parsed"] remove\_namespaces =\> true store\_xml =\> true force\_array =\> true xpath =\> ["/table/row/number/text()","number"] } Here i am getting only 1 record. I am expecting 5 records Under the column "number" i am getting value as comma seperated 123,124,125,126,127 My expectation …

---

_[View the full topic](https://discuss.elastic.co/t/create-nested-field-with-xpath/98230)._
