>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 ResearchReceived on Tuesday, 12 December 2000 08:56:41 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 October 2009 08:24:52 GMT