ASP.Net - Can a stringbuilder hold a large amount of data such as an XML file worth?

Posted on 2008-11-10
Last Modified: 2013-11-05
I have a loop where I am creating an XML string and elements.  It has many records though about 60000 or so at least.  How big can I keep appending a string builder to?
Question by:sbornstein2
    LVL 32

    Expert Comment

    by:Daniel Wilson
    The default capacity for this implementation is 16, and the default maximum capacity is Int32..::.MaxValue.                

    Int32.maxValue would be approximately 2 billion characters.
    LVL 32

    Accepted Solution

    So if your XML file is coming in under a couple gigabytes ... you should be OK.

    Author Closing Comment

    thank you

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
    In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now