[lxml-dev] Trouble parsing large XML document with ElementTree

Stefan Behnel stefan_ml at behnel.de
Sat May 24 21:00:11 CEST 2008


Hi,

did you read my other post?

Sam Kuper wrote:
> result = etree.XML(infile.read(), parser)

make that

    result = etree.parse("thefile.xml", parser)

and consider reading the parser docs on the web page.

Stefan


More information about the lxml-dev mailing list