Re: XML minidom Parsing and ToPrettyXML

2007-03-25 Thread Wojciech Muła
Paul Kozik wrote: > However, if I use xml.minidom.parse to parse the xml document, change > a few attributes with setAttribute, then write back with toprettyxml, > my XML file gets loaded up with spaces between many of the elements. Use 'toxml' method, that writes XML document without any modifica

XML minidom Parsing and ToPrettyXML

2007-03-25 Thread Paul Kozik
I am trying to write a script that reads an XML file (using the minidom module), makes an edit to a few attributes, then saves it back. If I use minidom.Document() to create the xml file, then write it with toprettyprint, it looks fine. However, if I use xml.minidom.parse to parse the xml document