I'm trying to learn about Python and XML. I would like to be able
to add standalone="no" to my xml declaration when writing an xml file,
but I am unable to figure out how. So far, I have the following
code:
import xml.dom.minidom
doc2 = xml.dom.minidom.Document()
print doc2.toxml('iso-8859-1')
I'm trying to learn about Python and XML. I would like to be able to
add standalone="no" to my xml declaration when writing an xml file, but
I am unable to figure out how. So far, I have the following code:
import xml.dom.minidom
doc2 = xml.dom.minidom.Document()
print doc2.toxml('iso-8859-1')