John Smith
Usenet Archive
- Joined
- May 5, 2000
- Messages
- 1,003
- Reaction score
- 0
Is it possible using an XPath query to select a child node and all its parents. e.g.
<a x="1">
<b x="2">
<c x="3"/>
<c x="4"/>
</b>
<b x="5">
<c x="6"/>
<c x="7"/>
</b>
</a>
I want to search for c[@x="4"] and get the the following:
<a x="1">
<b x="2">
<c x="4"/>
</b>
</a>
Is this possible?
Thanks
jon
<a x="1">
<b x="2">
<c x="3"/>
<c x="4"/>
</b>
<b x="5">
<c x="6"/>
<c x="7"/>
</b>
</a>
I want to search for c[@x="4"] and get the the following:
<a x="1">
<b x="2">
<c x="4"/>
</b>
</a>
Is this possible?
Thanks
jon