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 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:07 UTC