Suppose this is my XML:
<animals>
<mammals>
<an>dog</an>
<an>cat</an>
</mammals>
<reptiles>
<an>snake</an>
</reptiles>
</animals>
What I want is to get tuples like that using xpath
:
(mammals,dog)
(mammals,cat)
(reptiles,snake)
To get each of them separately, or both of them with 2 queries is easy. I was wondering if there is a way to get it (or very similar output) in 1 xpath query.
Any help will be appreciated!