Re: Why DOM Parser is not thread safe? Please explain

Michael Glavassevich <[email protected]>
Newsgroups gmane.text.xml.xerces-j.user
Message-ID <OF0AA0E0DB.34B10227-ON85257A9E.0067463B-85257A9E.006789B5@ca.ibm.com>
Michael Glavassevich <[email protected]> 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: [email protected]
E-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.