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

后端 未结 5 659
死守一世寂寞
死守一世寂寞 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:12

    I would just like to back up everyone who promotes XmlReader with a performance comparison that I found:

    http://www.nearinfinity.com/blogs/joe_ferner/performance_linq_to_sql_vs.html

提交回复
热议问题