Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: how to access sibling node that do not have children how to access sibling node that do not have childrenTo: NULL Date: 4/5/2006 12:16:00 AM
Hello,
I'm an xpath newbie and I'm trying to figure out how to return all
sibling nodes or child nodes that do not have children (so only go to
depth = 0 or 1).
I have the following:
<top>
<one></one>
<two></two>
<three></three>
<alpha1>
<letter1></letter1>
<letter2></letter2>
<beta>
<lettera></lettera>
<letterb></letterb>
</beta>
</alpha1>
<alpha2>
<letter1></letter1>
<letter2></letter2>
<beta>
<lettera></lettera>
<letterb></letterb>
</beta>
</alpha2>
<top>
And I'm trying to retrieve only nodes that have no children:
<one></one>
<two></two>
<three></three>
and for a later call node that only have children:
<alpha1>
</alpha1>
<alpha2>
<alpha2>
Any help is greatly appreciated.
Thanks.
*** Sent via Developersdex http://www.developersdex.com ***
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
