I'm using Ex4 and am trying to recurse through an xml structure. Here
is my structure except on a much smaller scale.
<root>
<set>
<category id="1">
<node id="1"/>
<node id="2"/>
<node id="3"/>
<node id="4"/>
<node id="5"/>
</category >
<category id="2">
<node id="1"/>
<node id="2"/>
<node id="3"/>
<node id="4"/>
<node id="5"/>
</category >
<category id="3">
<node id="1"/>
<node id="2"/>
<node id="3"/>
<node id="4"/>
<node id="5"/>
</category >
<category id="4">
<node id="1"/>
<node id="2"/>
<node id="3"/>
<node id="4"/>
<node id="5"/>
</category >
</set>
</root>
How Could I grab only the node = "3" under category = "4" using EX4
expression from the root node. Basically do a tree search without
having to drill down to the node level by using this code:
root.set.category.node(@id == "5")
Is there some way that you can just use the root and do a search?