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

Stefan Behnel stefan_ml at behnel.de
Sun May 25 08:08:40 CEST 2008


Hi,

RMP! :)

Sam Kuper wrote:
> result = etree.XML("content.example.xml", parser)
>
> 2008/5/24 Stefan Behnel:
>>    result = etree.parse("thefile.xml", parser)

See the difference?

Please read

    http://codespeak.net/lxml/tutorial.html#parsing-from-strings-and-files

and

    http://codespeak.net/lxml/parsing.html

Stefan



More information about the lxml-dev mailing list