Including standalone="no" in XML declaration

2006-04-14 Thread Stephen Briley
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')

Including standalone="no" in XML declaration

2006-04-14 Thread sdb1031
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')