2xpath专题

Xpath与lxml_2XPath语法

XPath使用路径表达式选择节点。 以下XML文档作为示例: xml='''<?xml version="1.0" encoding="utf8"?><bookstore><book><title lang="eng">Harry Potter</title><price>29.99</price></book><book><title lang="eng">Learning XML</