I'm trying to write an ElementTree object to disk. Everything works, except that the output file looks like this:
<html:html lang="en-US" xml:lang="en-US" xmlns:html="http://www.w3.org/1999/xhtml">
<html:head>
<html:title>vocab</html:title>
<html:style type="text/css"> ...
Since it's got the html: namespace info, the browser can't render it.
How can I make etree save some html to disk without the html: namespace info?
Here's the code I'm using to write:
with open('/path/to/file.html', mode='w', encoding='utf-8') as outfile:
mypage.write(outfile)
Thanks!