[lxml-dev] About lxml status

Olivier Grisel ogrisel at nuxeo.com
Mon Dec 11 15:34:41 CET 2006


David Soulayrol a écrit :
> Hello,
>         
> I am currently using 4Suite-XML for a project on my own, which makes use
> of DOM, XSLT and XPath. I've always looked around if I could find other
> libraries to replace 4Suite eventually, and I (re-) discovered libxml
> today, and found a link to lxml from there.
>         
> What I'd like to know is (before I dive deeply in documentation) how you
> would compare the XML support between 4Suite and lxml. Would you say
> lxml is ready for common DOM manipulations, XSLT transformations and
> simple XPath usage ?
>         
> I ask this because I've read in http://xmlsoft.org/index.html:
>         
> "Document Object Model (DOM) http://www.w3.org/TR/DOM-Level-2-Core/ the
> document model, but it doesn't implement the API itself, gdome2 does
> this on top of libxml2"

lxml is does provide a DOM API implementation but an ElementTree API which is
similar to DOM but simpler to use (more "pythonic"). As for XSLT and XPATH, lxml
support them out of the box.

If you really need a DOM API, the you probably should look at this project:

  http://www.python.org/pypi/libxml2dom

-- 
Olivier



More information about the lxml-dev mailing list