XPath 语法
The XML Example Document XML 案例文档 We will use the following XML document in the examples below. 我们将在接下来的案例中引用下面这个XML文档: <?xml version="1.0" encoding="ISO-8859-1"?> <bookstore> <book> <title lang="eng">Harry Potter</title> <price>29.99</price> </book> <book> <title lang="eng">Learning XML</title> <price>39.95</price> </book> </bookstore> Selecting Nodes 选取节点 XPath uses path expressions to select nodes in an XML document. The node is selected by following a path or steps. The most useful path expressions are listed below: XPath使用路径表达式在XML文档中选取节点。该节点是通过其后的一条语句或相应的步骤选取的。下面列出了最常用的路径表达式: Expression