SV: [jdom-interest] Merging JDOM documents

Per Norrman pernorrman at telia.com
Wed Oct 8 00:47:16 PDT 2003


> My problem remains, cloning effects the origin document.

I don't understand!

> I'd rather like to make a copy of my second document,
> is there a nice way to make a deep-copy of an Element ?

Yes, Element#clone(). I showed you:
 
    inReport.getRootElement().getChild("employee").addContent
                          ((Element)rules.getRootElement().clone());
 

/pmn




More information about the jdom-interest mailing list