[lxml-dev] XmlTextReader support

Roy, Remy remy.roy at cgi.com
Mon Nov 17 19:52:54 CET 2008


> No, but I always take patches. May I ask why iterparse() doesn't suite
> your needs?

>From my understanding, iterparse does not work well with streams which
is what I need to work with large xml content.

The suggested solution with lxml for this problem seems to be the
SAX-like events with a target parse on lxml.etree.

The SAX interface could eventually be of use for my application but it
would need many workarounds where as the XmlTextReader interface would
naturally fit in.


More information about the lxml-dev mailing list