Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 在HTTP响应中读取和解析XML的简单方法?_.net_Xml_Xml Parsing_Httpwebrequest_Httpwebresponse - Fatal编程技术网

.net 在HTTP响应中读取和解析XML的简单方法?

.net 在HTTP响应中读取和解析XML的简单方法?,.net,xml,xml-parsing,httpwebrequest,httpwebresponse,.net,Xml,Xml Parsing,Httpwebrequest,Httpwebresponse,我目前正在使用HttpWebRequest从网页获取HTTP响应。响应在XML中 .NET 2.0中是否有任何特定类有助于在XML中接收此响应,然后对其进行解析,以便对其进行处理? XmlDocument myXmlDocument=System.Xml.XmlDocument.Load(myResponseString) 然后,您可以使用XmlDocument在元素和属性之间循环到您的核心内容。var xDoc=XDocument.Load(url)使用VS2005所以不能使用任何Linq库。

我目前正在使用
HttpWebRequest
从网页获取
HTTP
响应。响应在
XML

.NET 2.0
中是否有任何特定类有助于在
XML
中接收此响应,然后对其进行解析,以便对其进行处理?

XmlDocument myXmlDocument=System.Xml.XmlDocument.Load(myResponseString)


然后,您可以使用XmlDocument在元素和属性之间循环到您的核心内容。

var xDoc=XDocument.Load(url)使用VS2005所以不能使用任何Linq库。为什么不对这个问题提出限制?我相信XmlDocument可能也有很好的特性