W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2000

Re: DOM fuctionality

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Tue, 12 Dec 2000 08:56:37 -0500
To: www-dom@w3.org
Message-ID: <OF1E09F54F.CF020DFC-ON852569B3.004C155F@pok.ibm.com>

>Wonder if there is a functionality in DOM to get nodes with no  children ,
which are the last
>generation in the document tree .

The easiest solution would be to write a simple NodeFilter which Skips any
node which has a firstChild, and plug that into the DOM Level 2 Traversal
objects (NodeIterator or TreeWalker).

If you're using a Level 1 DOM, you would have to write your own tree-walker
to accomplish this.

______________________________________
Joe Kesselman  / IBM Research
Received on Tuesday, 12 December 2000 08:56:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:48 GMT