Ensure you're calling XmlWriter.Close() to cause the buffered writes to be
flushed to the underlying stream/textwriter.
--
Daniel Cazzulino [MVP XML]
Clarius Consulting SA
http://weblogs.asp.net/cazzu http://aspnet2.com
"David Withnall" <an*******@discussions.microsoft.com> wrote in message
news:04**********************************@microsof t.com...
Okay,
I am using an XMLDocument object to process several thousands of
lodgements (from a database).
I am trying to output it from an XML Document to a file using the
XmlDocument.WriteTo() method with an XmlWriter. It writes 131kB and then
cuts out halfway through an element.
Is this a limitation of XmlDocument.WriteTo() ? What would be a better way
to output it?
Thanks
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.679 / Virus Database: 441 - Release Date: 09/05/2004