Terrence,
The size limit of a XmlTextWriter is the size of the underlying Stream (or
StreamWriter), the max size would be Int64.MaxValue (Long.MaxValue)
http://msdn.microsoft.com/library/de...ctorTopic2.asp
Length of a stream = Stream.Length
http://msdn.microsoft.com/library/de...engthTopic.asp
Now if you are really asking about the size limit of a StringWriter, then it
would be Int32.MaxValue (Integer.MaxValue) the capacity of the underlying
StringBuilder.
http://msdn.microsoft.com/library/de...ClassTopic.asp http://msdn.microsoft.com/library/de...acityTopic.asp
Of course with both methods (Stream & StringWriter) you will more then
likely run out of system resources first, either actual harddisk space or
virtual memory.
Hope this helps
Jay
"Terrence Chan" <te***********@fmr.com> wrote in message
news:Ov*************@TK2MSFTNGP12.phx.gbl...
Does anyone know the size limit of the StringWriter and XmlTextWriter.
Dim buffer As New System.IO.StringWriter
Dim writer As New System.Xml.XmlTextWriter(buffer)
Please point me to some technical documents.
Thanks,
Terrence
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!