| Author |
How copy an org.w3c.dom.Document object?
|
Dan Bizman
Ranch Hand
Joined: Feb 25, 2003
Posts: 387
|
|
|
In my code, I've created a Document object via LSParser.parse(...). I will need to use the basic document created many times but each time, the data needs to be changed inside it (and form diff. threads, so likely concurrently). I don't want to have to reparse the XML string every time (that's pretty intensive). is there a known way to copy this object and get the entire hierarchy?
|
 |
Aryan Khan
Ranch Hand
Joined: Sep 12, 2004
Posts: 289
|
|
Take a look at Document.cloneNode(true) and Document.importNode(true). Ahmad
|
OCP/MCP/SCJP/SCWCD/IBM XML/SCMAD/SCEA-1
|
 |
 |
|
|
subject: How copy an org.w3c.dom.Document object?
|
|
|