Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

SV: [jdom-interest] Merging JDOM documents

Per Norrman

2003-10-08

Replies:



> 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

_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.