[jdom-interest] parentless DOM nodes created by DOMOutputter

Alex Rosen arosen at silverstream.com
Thu Apr 18 07:48:34 PDT 2002

> > At 3:41 PM -0400 4/17/02, Alex Rosen wrote:
> > >Couldn't we just let the user pass in the DOM Document for
> us to use? Seems
> > >easy, but looking at the DOMOutputter code and not
> understanding it at all,
> > >I'm not sure.
> > >
> >
> > There are already two methods that do exactly that. I'm
> suggesting we
> > get rid of the two methods oin which we don't pass a
> Document object.
> But they're protected.  Hmm, should they be public?
> -jh-

That would be my suggestion, if we could get rid of that NamespaceStack

On a related note, DOMBuilder.build(domElement) returns a JDOM Element that
is still attached to its parent document. If you try to add it to your own
Document you get an error. I suspect that this is not what we want, right? I
think we should detach() it first.


More information about the jdom-interest mailing list