日期:2014-05-18 浏览次数:20590 次
string result = "";
XmlDocument xmldocument = new XmlDocument();
xmldocument.LoadXml(result);
XmlNodeList node = xmldocument.SelectNodes("//display");
foreach (XmlNode n in node)
{
string id = n.SelectSingleNode("website").InnerText;
string RName = n.SelectSingleNode("siteurl").InnerText;
}
------解决方案--------------------
XmlNodeList node = xmldocument.SelectNodes("//display");
然后遍历node
------解决方案--------------------