XmlDocument.selectNodes() and selectSingleNode()的xpath的学习资料

Xpath网页:

http://www.w3school.com.cn/xpath/xpath_syntax.asp

 

 XDocument.parse(string)类似于XmlDocument.loadxml(string)

如果要在xDocument中使用xpath查询,需要using System.Xml.XPath;

使用xpath可以一层一层的去找

 

posted @ 2017-11-17 14:29  月月想你,李  阅读(409)  评论(0编辑  收藏  举报