How to write (big) XML to a file in C#?

前端 未结 3 423
心在旅途
心在旅途 2021-02-04 09:39

Folks,

Please, what\'s a good way of writing really big XML documents (upto say 500 MB) in C# .NET 3.5? I\'ve had a bit of search around, and can\'t seem to find anythin

3条回答
  •  不知归路
    2021-02-04 09:46

    Use a XmlWriter:

    [...] a writer that provides a fast, non-cached, forward-only means of generating streams or files containing XML data.

提交回复
热议问题