|
-
Dec 9th, 2004, 09:36 AM
#1
Thread Starter
Lively Member
XPath - Return current node without child nodes
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|