W
William
I am attempting to write an XmlDocument to file, but for some reason it will
only write 2048 characters of the document even though when I stop it in the
debugger ALL of the document is there.
Code snippet is as follows:
XmlDocument xml = new XmlDocument();
xml.LoadXml(Encoding.UTF8.GetString(btResponse));
XmlTextWriter w = new XmlTextWriter("..\\..\\..\\xml\\Test.xml", null);
xml.WriteTo(w); // will not write anything after 2048 bytes
Any suggestions?
only write 2048 characters of the document even though when I stop it in the
debugger ALL of the document is there.
Code snippet is as follows:
XmlDocument xml = new XmlDocument();
xml.LoadXml(Encoding.UTF8.GetString(btResponse));
XmlTextWriter w = new XmlTextWriter("..\\..\\..\\xml\\Test.xml", null);
xml.WriteTo(w); // will not write anything after 2048 bytes
Any suggestions?