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?
Joined: Sep 12, 2004
Take a look at Document.cloneNode(true) and Document.importNode(true).