I have a XML structure like
<root>
<row>
<value>1</value>
</row>
<row>
<value>2</value>
</row>
</root>
I want to get <row> where <value> = 2. Is it possible? Any example?
To be more precise the xml structure is like this
<root>
<row>
<value>1</value>
</row>
<root>
<row>
<value>2</value>
</row>
</root>
</root>
@x.nodes('/roots/root/row') a(b)if i assume there is a roots of all root<row>is directly under the root and your second<row>is under the<root>of root.