180
180
root = parse('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" xmlns:xml="http://www.w3.org/XML/1998/namespace"><body/></html>')
181
181
self.assertNotIn('xmlnsU0003Axml', root.attrib, 'xml namespace declaration not removed')
185
188
from calibre.ebooks.chardet import xml_to_unicode