|
||||
|
I had e-mail python-help about this but I didn't get a definitive answer: xml.dom.minidom.parseString(xml.dom.mini = u'willis' xml.dom.minidom.parseString(xml.dom.mini u'\n willis\n' I'd like to understand why toprettyxml actually outputs xml that is parsed back as different from the original string. I'm trying to mesh a rather large xml construct with a gaim xml configuration file, and I need to find a function to print it out so it can be written to the file. toxml() would work except it prints everything on one line, which is no good. basically I'm just look for a way to print xml so that text doesn't have newlines i.e. the difference between: <account>willis</account> <-- good <account> willis <-- bad </account> |
||||
|
|
