[jdom-interest] RE: to you all

Jason Hunter jhunter at collab.net
Wed Feb 14 01:02:23 PST 2001


> I was wondering why a recursive call is used to get to document. Isn't it
> possible to set document for every Element that's part of a document? 

Then every element add would require walking the tree setting the
current document on all children.  More efficient this way, plus with a
later optimization we can lose the Document reference and reuse the same
instance for a general "parent".

-jh-



More information about the jdom-interest mailing list