[Home] [By Thread] [By Date] [Recent Entries]

Subject: RE: XPath for leaf nodes
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Thu, 20 Jan 2005 10:20:43 +0200
Hi.

> That is great.  But I have a follow-up question.
>
> How would I find all nodes whose descendants are only
> leaf nodes?

//*[* and not(*/*)]

I.e. all elements who have at least one child, but do not have any
grandchildren.

Cheers,

Jarno

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member