XML: SAX and XInclude

Laurent Pointal laurent.pointal at limsi.fr
Tue Sep 11 08:22:39 EDT 2007


Stefan Behnel a écrit :
> Laurent Pointal wrote:
>> does anybody know about an XML parser usable with the sax API (xml.sax)
>> and with XInclude feature support (directly or via hacks).
> 
> Try lxml.etree.
> 
> http://codespeak.net/lxml/
> 
> http://codespeak.net/lxml/tutorial.html
> http://codespeak.net/lxml/api.html#xinclude-and-elementinclude
> http://codespeak.net/lxml/parsing.html#iterparse-and-iterwalk
> 
> It's not half as complicated as SAX, BTW.
> 
> Stefan

I've already used ElementTree for XML tree manipulations in some 
projects... will try to adapt my sax based processing to lxml using 
those links.

Thanks,

Laurent.



More information about the Python-list mailing list