I\'m currently using the toprettyxml() function of the xml.dom module in a Python script and I\'m having some trouble with the newlines. If don\'t
toprettyxml()
xml.dom
toprettyxml(newl='') works for me on Windows.
toprettyxml(newl='')