ElementTree vs. lxml (python XML libraries)

seth vidal skvidal at phy.duke.edu
Thu May 12 18:30:10 UTC 2005


> I have been looking at what library to use for parsing the XML content
> in the dbus python bindings.  Suggestions were to use lxml
> (http://codespeak.net/lxml/) however we don't currently ship it.  Yum
> currently uses ElementTree for its parsing.  lxml aims to be compatible
> with the ElementTree API with a few exceptions.  On top of that it uses
> libxml2 as its base library and extends the ElementTree API with things
> like XPath, Relax NG, XSLT and c14n.  While the dbus bindings don't need
> these features some of the other stuff I want to work on may.  

Oh - one thing tangentially related - you've seen the simple dbus event
notifier that nasrat wrote for doing this, right?

https://www.redhat.com/archives/fedora-config-list/2005-March/msg00008.html

instead of parsing it on its own it lets yum do the work for it and send
the events that way.

-sv





More information about the fedora-devel-list mailing list