[jdom-interest] Element.getDocument() ?
jhunter at collab.net
Thu Aug 31 02:31:28 PDT 2000
> Probably just recursively getParent() until isRootElement(),
> and hold a reference to the Document there. Maybe.
Sounds about right. You could save space and some logic work by getting
rid of the isRootElement boolean and just handling a parentDocument
Element reference. For example, you implement isRootElement() as:
return (parentDocument != null);
More information about the jdom-interest