XPath select certain amount of levels only
- by Psytronic
If I have an xml structure like this
<root
<sub
<node /
<node /
</sub
<sub
<node /
<sub
<sub
<sub
<node /
</sub
</sub
<sub
<sub
<sub
<node /
</sub
<node /
</sub
</sub
<node /
<node /
</root
Is there an xpath syntax which will only select the first three levels of nodes?
so it will collect
<root
<sub
<node /
<node /
</sub
<sub /
<sub
<sub /
</sub
<sub
<sub /
</sub
<node /
<node /
</root
Thanks, Psy