[lxml-dev] Can't load external DTD.

Piet van Oostrum piet at cs.uu.nl
Wed Feb 20 17:41:09 CET 2008


>>>>> Nef Asus <nefasus at gmail.com> (NA) wrote:

>NA> Hello everyone, 
>NA> I've written this little program that refuses to work:

>NA> from lxml import etree
>NA> if __name__ == "__main__":
>NA>     xml_input = "C:\Desarrollo\pythontests\lxml\foo.xml"

Double your backslashes or use r"C:\Desarrollo\pythontests\lxml\foo.xml".
-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: piet at vanoostrum.org



More information about the lxml-dev mailing list