[jdom-interest] Newbie question.

nostromo at arcor.de nostromo at arcor.de
Mon Dec 31 01:38:32 PST 2001


I wanted to make a new document from a part of a bigger document.
I retrieve a Element from the bigger document:
Element el = tt.getChild("MsData");
And want to made it the root of a new document.
Document doct = new Document(el);
At runtime i got the following error.
org.jdom.IllegalAddException: The element "MsData" could not be added as the root of the document: The element already has an existing parent "db"    

Any hints or solutions?

I am new to jdom, xml and java.


jdom verion

Das Communication-Pack von Siemens.... Buy.....

More information about the jdom-interest mailing list