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