python处理xml的三种常见机制 dom(随机访问机制) sax(Simple APIs for XML,事件驱动机制) etree python处理xml的三种包 标准库中的xml Fredrik Lundh 的 ElementTree Stefan Behnel 的 lxml 对以上三种包的介绍和对比 摘录自:http://infohost.nmt.edu/tcc/help/pubs/pylxml/web/index.html With the continued growth of b…
一.Python lxml的基本应用 <html> <head> <title> The Dormouse's story </title> </head> <body> <p class="title"> <b> The Dormouse's story </b> </p> <p class="story"> Once upon a…