在C#中读取XML? [英] Read xml in c#?

查看:62
本文介绍了在C#中读取XML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 我将XML内容转换为字符串变量,并且想要读取该xml并执行某种操作.这是读取xml并对其执行操作的最佳方法.

谢谢.

解决方案

方法很多

您可以使用

* System.Xml.XmlDocument.

* System.Xml.Linq.XDocument

* System.Data.DataSet

* System.Xml.Serialization概念



Hi,

 I have a XML content into string variable and want  to read that xml and perform some kind of operation. Which is the best way to read an xml and perform operation on it.

Thanks.

解决方案

There are so many ways

You can use

* System.Xml.XmlDocument.

* System.Xml.Linq.XDocument

* System.Data.DataSet

* System.Xml.Serialization concepts 



这篇关于在C#中读取XML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆