Hi to all!
I am pretty new to Xpath and I am quite lost.
I use Stylus Studio Prof for all things related to XML, and I've been struggling with this apparently simple question for a few days.
If I have something like:
<sales>
<person>
<id>
<tag>2345X</tag>
<name>Doe, Joe</name>
</id>
<amount>444.60</amount>
</person>
<person>
<id>
<tag>9874A</tag>
<name>One, Any</name>
</id>
<amount>673.98</amount>
</person>
<person>
<id>
<tag>4561C</tag>
<name>Ine, Carol</name>
</id>
<amount>8765.00</amount>
</person>
</sales>
(In fact I'm working with a much more complex structure...)
I know how to get all <tag>'s and how to get all <amount>'s, but is there a (simple) way to get the following, with a one-liner?
2345X 444.60
9874A 673.98
4561C 8765.00
That is, a list of <tag>'s and the corresponding <amount> for each person.
Thanks a lot for your help.
JotaPe