toprettyxml()太糟糕了 这与Windows和’ r
n’无关。尝试使用任何字符串作为
newl参数都表明添加了太多行。不仅如此,还添加了其他空格(当机器读取xml时可能导致您出现问题)。
一些解决方法可在
http://ronrothman.com/public/leftbraned/xml-dom-minidom-toprettyxml-and-
silly-whitespace中获得

toprettyxml()太糟糕了 这与Windows和’ r
newl参数都表明添加了太多行。不仅如此,还添加了其他空格(当机器读取xml时可能导致您出现问题)。
一些解决方法可在
http://ronrothman.com/public/leftbraned/xml-dom-minidom-toprettyxml-and-
silly-whitespace中获得