By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,883 Members | 1,272 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,883 IT Pros & Developers. It's quick & easy.

What is the max. size limt of XmlTextWriter?

P: n/a
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!
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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!

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.