Hello

I've been working on a script that generates a XML document, and output needs to have encoding "ISO-8859-1" defined in the first <?xml ...> tag.

I found this example on http://infohost.nmt.ed u/tcc/help/pubs/pyxml/creating.html

Code:
import xml.dom.minidom
#import xml.dom.ext as domExt

dom = xml.dom.minidom.getDOMImplementation()

doctype = dom.createDocumentType("html",
...