Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
This is my sample XML
<shiporder>
<items>
<item>
<title>Empire Burlesque</title>
<note>Special Edition</note>
<quantity>1</quantity>
<price>10.90</price>
</item>
<item>
<title>Hide your heart</title>
<quantity>1</quantity>
<price>9.90</price>
</item>
</items>
</shiporder>
My XPath query doesn't give the expected output , i.e. it should give both the titles whereas its giving the first title only.
I tried below XPath:
- //shiporder/items/item[position()<3]/title
- //title
Shouldn't Talend give proper output for my above XPath strings ?
rhall_2.0 wrote:
If you want data for every title, you need to set the loop xpath. You have set it to "/".