What is the best way to parse large XML (size of 1GB) in C#?

后端 未结 5 661
死守一世寂寞
死守一世寂寞 2020-12-03 11:13

I have a 1GB XML file and want to parse it. If I use XML Textreader or XMLDocument, the result is very slow and some times it hangs...

5条回答
  •  甜味超标
    2020-12-03 12:13

    I'm not very familiar with this topic, but afaik the XmlReader-classes ought to work fine for your specific problem. They are, after all, optimized for exactly this.

提交回复
热议问题