xml.dom.minidom losing the XML document type attribute

Stefan Behnel stefan_ml at behnel.de
Thu Jun 11 15:35:08 CEST 2009

Johannes Bauer wrote:
> Stefan Behnel schrieb:
>>> Can I somehow force Python to generate it anyways?
>> Did you try passing encoding='UTF-8' on serialisation?
> Uhm... nope - how can I do that?

Well, depends on what your code currently does.

Maybe you could use something like

	doc.xmlwrite(..., encoding='UTF-8')


More information about the Python-list mailing list