[jdom-interest] recursive getAllChildren()

Jason Hunter jhunter at collab.net
Fri Jun 8 01:06:37 PDT 2001

Peter Wood wrote:
> I want to "getAllChildren()" but I assumed that this would be 
> recursive, 
> Can anyone help me by explaining why this method either isn't 
> recursive 

Because an item's children shouldn't include an item's grandchildren.

I do think it'd be nice to have a doc.iterator() and elt.iterator()
style of method to allow someone to walk the tree, but you can read
thoughts on future possibilities in TODO.txt.


More information about the jdom-interest mailing list