I have xml containing the following information, I use Xpath to parse it
<root>
<a>
<b></b>
<c></c>
<d></d>
</a>
<a>
<b></b>
<c></c>
<d></d>
</a>
</root>
my goal is to get the nodelist from the tag 'a' and in each subblock containing 'b' and 'c' (etc. filter out 'd'!) what I am doing now is use '/ root / a' to get the nodes containing all 'a', 'b' and 'c' and then get rid of 'c', what I set up for this does filtering in XPath instead of using extra code, is there anyway can do it thank!
source
share