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

Sam Kuper sam.kuper at uclmail.net
Sun May 25 16:07:25 CEST 2008


Stefan,

My apologies and thanks - my eyes obviously weren't working so well
yesterday! The program's running smoothly now (aside from some "'ascii'
codec can't encode character" exceptions that I'm "try/except"ing until I've
understood how to handle them with lxml; I realise the docs cover this but I
(still) don't quite understand them all yet). Thanks again.

Gratefully,

Sam


2008/5/25 Stefan Behnel <stefan_ml at behnel.de>:

> > result = etree.XML("content.example.xml", parser)
> > result = etree.parse("thefile.xml", parser)
>
> See the difference?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/lxml-dev/attachments/20080525/cd53b2dc/attachment.htm 


More information about the lxml-dev mailing list