[lxml-dev] About lxml status
Lee Brown
lee.brown at elecdev.com
Mon Dec 11 20:53:18 CET 2006
Greetings!
This discussion reminded me of a question that I've been pondering: will the
XPATH support in LXML eventually include support for axes and predicates?
Also, congratulations on the thorough Xinclude support. Other than 4Suite, LXML
is one of the few parsers that handle the "parse=" attribute and the "fallback"
elements correctly.
-----Original Message-----
From: lxml-dev-bounces at codespeak.net [mailto:lxml-dev-bounces at codespeak.net] On
Behalf Of Martijn Faassen
Sent: Monday, December 11, 2006 2:31 PM
To: lxml-dev at codespeak.net
Subject: Re: [lxml-dev] About lxml status
Hey,
Stefan Behnel wrote:
[snip]
> lxml does not implement the DOM API either. Instead, as the cheeseshop
> page nicely states:
>
> ---------------------
> lxml is a Pythonic binding for the libxml2 and libxslt libraries. It
> provides safe and convenient access to these libraries using the ElementTree
API.
Note that the ElementTree API is a developing Python standard, implemented by 3
separate libraries, ElementTree, cElementTree and lxml.
ElementTree and cElement have become part of the core Python distribution as of
Python 2.5.
A lot of ElementTree documentation can be found here:
http://effbot.org/zone/element-index.htm
You can do common DOM-style manipulations through this API, just in a more
convenient manner.
As to XPath and XSLT support, lxml has that, including the ability to create
extension functions and the like. There are differences in feature set here and
there, but overall lxml should be able to compete with 4Suite.
Regards,
Martijn
_______________________________________________
lxml-dev mailing list
lxml-dev at codespeak.net
http://codespeak.net/mailman/listinfo/lxml-dev
More information about the lxml-dev
mailing list