Michael Glavassevich <mrgla...@ca.ibm.com> wrote on 21/10/2012 02:43:49 
PM:
 
> > Or do I need to import the whole document rather than clone to 
completely 
> > "disconnect" it from the cached master DOM?  If so, how much more 
> > overhead, if 
> > any, does importing entail than cloning?
> 
> Cloning a Document node is the same as creating a new document and 
> (deep) importing all the immediate child of the other document. 
> Whether you're cloning or importing it's going to create new objects. 

With the exception that the DOM spec forbids importing of DocumentType 
nodes, so it isn't quite interchangeable.

Thanks.

Michael Glavassevich
XML Technologies and WAS Development
IBM Toronto Lab
E-mail: mrgla...@ca.ibm.com
E-mail: mrgla...@apache.org

Reply via email to