AW: [jdom-interest] Newbie question.

MarkW markw at wilsoncom.de
Tue Jan 1 07:41:52 PST 2002


Yo,
this works:
Document doct = new Document((Element)el.clone());

Sesonal greetings from Germany,
Mark Wilson
WILSONCOM.

> -----Ursprüngliche Nachricht-----
> Von: jdom-interest-admin at jdom.org
> [mailto:jdom-interest-admin at jdom.org]Im Auftrag von nostromo at arcor.de
> Gesendet: Montag, 31. Dezember 2001 10:39
> An: jdom-interest at jdom.org
> Betreff: [jdom-interest] Newbie question.
>
>
> Hi!
>
> 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.
>
> Erik
>
> jdom verion
> jdom-7b
>
>
>
> -----------------------------------------------------------------------
> Das Communication-Pack von Siemens.... Buy.....
> http://www.arcor.de/home/redir.php/siemens1
> -----------------------------------------------------------------------
>
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/yourad
dr at yourhost.com




More information about the jdom-interest mailing list