[jdom-interest] Making a Document out of an Element

Laurent Bihanic laurent.bihanic at atosorigin.com
Wed Sep 12 07:00:36 PDT 2001


Dotan Dvir wrote:

> I have a org.jdom.Element which is a sub-tree of a config tree. I wish to
> make ut into a Document by making use of the 
> constructor Document(Elememt rootElement). However, I get the exception that
> the root element is already set. What am I doing wrong?
> 
You need to call Element.detach() before trying to make it the root of a new document.


Laurent





More information about the jdom-interest mailing list