什么是XPath
XPath (XML Path Language)是一门在 HTML\XML文档中查找信息的语言,可用来在HTML\XML文档中对元素和属性进行遍历。
html和xml的区别
xml的树结构
<bookstore>
<book category="COOKING">
<title lang="en">Everyday Italian</title>
<author>Giada De Laurentiis</author>
<year>2005</year>
<price>30.00</price>
</book>
<book category="CHILDREN">
<title lang="en">Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>
<book category="WEB">
<title lang=