[jdom-interest] Element.getDocument() ?
Brett McLaughlin
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.
-Brett
>
> -jh-
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
--
Brett McLaughlin, Enhydra Strategist
Lutris Technologies, Inc.
1200 Pacific Avenue, Suite 300
Santa Cruz, CA 95060 USA
http://www.lutris.com
http://www.enhydra.org
More information about the jdom-interest
mailing list