[jdom-interest] Divorcing Root Element from document!!

Frank Wierzbicki fwierzbicki at arsenaldigital.com
Tue Nov 7 13:31:21 PST 2000

I believe you just need to clone() the element and then use the cloned
element to make the new Document.

-----Original Message-----
From: royd at tsainc.com [mailto:royd at tsainc.com]
Sent: Tuesday, November 07, 2000 3:47 PM
To: jdom-interest at jdom.org
Subject: [jdom-interest] Divorcing Root Element from document!!

I am trying to take the root element of one Document and append it as a 
child element on a second document... I continually get errors about it 
having a parent.  How do you divorce the root element from the Document?
To control your jdom-interest membership:

More information about the jdom-interest mailing list