xml.dom.minidom losing the XML document type attribute

Johannes Bauer dfnsonfsduifb at gmx.de
Thu Jun 11 18:19:31 EDT 2009

Stefan Behnel schrieb:
> 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')

Yay! Does the trick, thanks a lot!

Kind regards,

"Meine Gegenklage gegen dich lautet dann auf bewusste Verlogenheit,
verlästerung von Gott, Bibel und mir und bewusster Blasphemie."
         -- Prophet und Visionär Hans Joss aka HJP in de.sci.physik
                         <48d8bf1d$0$7510$5402220f at news.sunrise.ch>

More information about the Python-list mailing list