解析在C#中的XML文件 [英] Parsing an XML file in C#
本文介绍了解析在C#中的XML文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
什么是分析在C#中的XML文件的最快方法是什么?我使用的.Net 2.0
What is the fastest method of parsing an XML file in C#? I'm using .Net 2.0
推荐答案
如果你使用的.Net 2那么的XmlReader和XmlDocument的是它。
If you're using .Net 2 then the XmlReader and XmlDocument are about it.
如果您可以使用的.Net 3.5,则新的LINQ到XML的方法是一个很大的进步。
If you can use .Net 3.5 then the new Linq to Xml methods are a big improvement.
这篇关于解析在C#中的XML文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文