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 [quoted text, click to view] "David Withnall" <anonymous@discussions.microsoft.com> wrote in message
news:041B3C13-C1AD-4599-BD11-EE1A19895821@microsoft.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.
[quoted text, click to view] >
> 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