[jdom-interest] Element.getDocument() ?
brett.mclaughlin at lutris.com
Thu Aug 31 08:11:08 PDT 2000
Jason Hunter wrote:
> bob wrote:
> > 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);
Actually, this doesn't work, as any Element created like so:
Element nonRoot = new Element("foo");
would think it is the root element.
> To control your jdom-interest membership:
Brett McLaughlin, Enhydra Strategist
Lutris Technologies, Inc.
1200 Pacific Avenue, Suite 300
Santa Cruz, CA 95060 USA
More information about the jdom-interest