I need to copy a Node from source document to destination document??
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   OBUCHI_MACHINI
Posted On:   Tuesday, July 9, 2002 07:31 AM

I need to copy a Node from Source document to a destination document under a different Node. pl help me with code samples.

Re: I need to copy a Node from source document to destination document??

Posted By:   Lunkwill_Vroomfondel  
Posted On:   Tuesday, July 9, 2002 07:46 AM

with jdom (www.jdom.org) this would be sth. like:




Element src=documentA.getRootElement().getChild("desiredsrc");
documentB.getRootElement().addContent((Element)src.clone());


good luck.
About | Sitemap | Contact