[lxml-dev] XInclude does not support Resolvers?

Stefan Behnel behnel_ml at gkec.informatik.tu-darmstadt.de
Tue Nov 28 18:10:35 CET 2006


Luke Tucker wrote:
> It wouldn't be on the C side, but I think lxml might stick 
> close enough to the ElementTree api to use their python xinclude 
> implementation (ElementInclude.py) which does support the 
> specification of a resolver if you need it. If you 
> don't want to use that directly, it's probably a decent
> example. There is also a modified version of it that we use 
> with lxml in Deliverance, but it's recursive I believe. 

It is, right. For a Python-based solution in lxml, I'd personally prefer
something based on getiterator("{http://.../xinclude}include"), should be much
faster.

Maybe we could even switch to something like that internally in lxml...

Stefan


More information about the lxml-dev mailing list