使用Python在XML中进行XPath查询

Pra*_*bhu 7 python python-3.x

是否可以在处理XML时在Python中使用XPath Query.我正在使用不支持它的minidom.那还有其他模块吗?

gon*_*alu 7

http://docs.python.org/library/xml.etree.elementtree.html

etree支持XPath查询,就像lxml一样.

etree包含在标准库中,但lxml更快.