[jdom-interest] How to move elment between Docment?

Alex Rosen arosen at silverstream.com
Wed Sep 18 10:52:48 PDT 2002


You can use clone() if you want to copy an object from one document to
another, or use detach() if you just want to move it.

Alex

-----Original Message-----
From: jdom-interest-admin at jdom.org [mailto:jdom-interest-admin at jdom.org]On
Behalf Of jack dong
Sent: Wednesday, September 18, 2002 2:08 AM
To: jdom-interst
Subject: [jdom-interest] How to move elment between Docment?


Hi, gentlemen:

How can I move a root element form its Docment to
another Docment?
I know that it is not permit to add a element that has parent to another
Docment(or Element),
So I used clone to do the work.

And now I get a new copy of JDOM from cvs, if there has more simple way to
do this?

Regards

Jack Dong




More information about the jdom-interest mailing list