xml in python

uuid M8R-gqmgb4 at mailinator.com
Sun May 10 09:40:04 CEST 2009

On 2009-05-10 09:24:36 +0200, Piet van Oostrum <piet at cs.uu.nl> said:
> These days ElementTree is considered the most pythonic way.
> http://docs.python.org/library/xml.etree.elementtree.html
> There is also a reimplementation of the ElementTree API based on libxml2
> and libxslt, which has more features but requires a separate install. It
> is largely compatible with ElementTree, however.

Indeed - elementtree and its blazing C implementation celementtree are 
included in the standard install.

However, I would also recommend checking out the latter option - lxml. 
It's very fast, has an elementtree compatible API and sports some 
tricks like XPath and XSLT. There's comprehensive documentation as well 
als tutorials, hints and tips here: http://codespeak.net/lxml/

More information about the Python-list mailing list