B
bearclaws
I want to select certain nodes from an XML file whose parent nodes
contain a particular attribute id.
For instance, here's a sample XML file:
<AAA>
<BBB id="111">text
<CCC>text</CCC>
</BBB>
<BBB id="222">
<CCC>text</CCC>
</BBB>
</AAA>
....and I want to loop through "AAA" and get all "CCC" nodes whose
parents id is "111".
How do I do this?
Thanks,
BC
contain a particular attribute id.
For instance, here's a sample XML file:
<AAA>
<BBB id="111">text
<CCC>text</CCC>
</BBB>
<BBB id="222">
<CCC>text</CCC>
</BBB>
</AAA>
....and I want to loop through "AAA" and get all "CCC" nodes whose
parents id is "111".
How do I do this?
Thanks,
BC