[jdom-interest] importNode

Jason Hunter jhunter at collab.net
Fri Nov 17 10:03:02 PST 2000


> How can I copy nodes from one JDOM document to another?

>From your subject, you're still thinking like DOM.  In JDOM you don't
need to do an import, just remove the element from its original place,
and add the element to its new place.  You have to do the remove first
because an elt can't be in two docs at once.

If you want a copy, then add a clone().

-jh-





More information about the jdom-interest mailing list