> I'm reading a xmldocument in from the file system and using
> xmldocument.writeto(xmltextwriter) to stream the xml data to the
> response.outputstream. From what i've read, reading an xmldocument is
> thread safe but does the writeto() method require a lock?
Well, with regard to XmlDocument itself, WriteTo() method is a read
operation - it walks through the whole tree and calls each node to write
itself to XmlWriter. So it's thread safe. Of course if you don't want
another thread to modify XmlDOcument while WriteTo() method works you
need some sort of synchronization.

Signature
Oleg Tkachenko [XML MVP, MCAD]
http://www.XmlLab.Net | http://www.XLinq.Net | http://blog.tkachenko.com
Charles.Deisler@gmail.com - 09 Nov 2005 15:07 GMT