Good day.

I hv the following XML for example and I tried to write a XPath query to return just the <AAA> and omit all the other child nodes (BBB and CCC and BBBBB) .

<AAA Name='aaa' ID='aaa'>
<BBB>bbbbbbbbbb</BBB>
<BBBBB>bbbbbbbbbbbbbbb</BBBBB>
<CCC>cccccccccc</CCC>
</AAA>

I tried //AAA/self::* but it still return the whole childnodes to me.

Any idea how to accomplish this ?

Thanks.

SonicWave