I have an xml like:
<?xml version="1.0" encoding="UTF-8"?>
<results>
<result>
<street>a</street>
</result>
<result>
<street>b</street>
</result>
<result>
<street>c</street>
</result>
</results>
I want to obtain a list of string containing all the street values.
In my example it is:
[a,b,c]
With XPath I can write anything like:
//street
I tried anything like:
XpathParser.INSTANCE.evaluate(xml, expression);
But I can only obtain a single string, not a list of strings.
Anybody have an idea?