[lxml-dev] xpath comparison
Stefan Behnel
stefan_ml at behnel.de
Fri Jun 6 16:06:56 CEST 2008
Hi again,
Olivier Collioud wrote:
> for mref in definitionsTree.xpath('//MREF'):
> if mref.get('START') <= symbol <= mref.get('END'):
If you really need a high-speed implementation for this, consider rewriting it
as an external Cython module that works directly on the libxml2 tree.
http://codespeak.net/lxml/capi.html#writing-external-modules-in-cython
The public C-API of lxml.etree is described here:
http://codespeak.net/svn/lxml/trunk/src/lxml/etreepublic.pxd
Stefan
More information about the lxml-dev
mailing list