Suppose I have an XML:
<as> <a> <name>xxx</name> <data>xxx-data</data> </a> <a> <name>yyy</name> <data>yyy-data</data> </a> <a> <name>zzz</name> <data>zzz-data</data> </a> </as>
Now I would like to write an XPath
to select the data
text of the element a
with the name
text xxx
. This Xpath
should return xxx-data
. How can I do that?