SV: [jdom-interest] Merging JDOM documents

Rosén Håkan hakan.rosen at kvadrat.se
Wed Oct 8 00:53:25 PDT 2003


Yes you´re right !
I had made so many tries in my code so I missed an assignment of a new root
Thanks !!
/hr 

-----Ursprungligt meddelande-----
Från: Per Norrman [mailto:pernorrman at telia.com]
Skickat: den 8 oktober 2003 09:47
Till: 'Rosén Håkan'; jdom-interest at jdom.org
Ämne: SV: [jdom-interest] Merging JDOM documents




> 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