I have one xml document
sample.xml
<cities>
<id>1<id>
<country>India</country>
<city>Mumbai</city>
</cities>
<cities>
<id>2<id>
<country>US</country>
<city>California</city>
</cities>
<cities>
<id>3<id>
<country>India</country>
<city>New Delhi</city>
</cities>
I want to perform search on Id and On the basis of id I want to fetch only one element. For ex: if I search for id=1 I want
<cities>
<id>1<id>
<country>India</country>
<city>Mumbai</city>
</cities>
only this to be returned
This would have been easy if cities were part of different xml's, I would have simply done
element-value-query
any suggestions how to tackle this with all the cities being part of one xml only?
I got that working using FLOWR