On 25 Jun, 02:04, Bruno Barberi Gnecco
<brunobgDELETET...@users.sourceforge.netwrote:
I've found a lot of XML libraries for Python. Any advices on which
one to use (or *not* to use)? My requirements are: support for XPath,
stability (a must, segfaults are not an option), with DOM API and good
performance desirable.
You might be interested in libxml2dom:
http://www.python.org/pypi/libxml2dom
It uses libxml2 under the covers, meaning that it has good performance
and supports XPath, but I can't always guarantee stability: libxml2
can get quite upset in some situations, but I've worked fairly hard to
avoid triggering them. The module API is similar to PyXML/minidom and
I've found some time to add minimal support for DOM events and SVG,
although there's a long way to go in both of these areas. This is a
project with just me as the developer, although there are a number of
helpful users who have kindly provided bug reports and suggestions for
improvements over the years.
Paul