[issue5752] xml.dom.minidom does not handle newline characters in attribute values

Francesco Sechi report at bugs.python.org
Wed May 6 23:47:32 CEST 2009

Francesco Sechi <francesco.sechi at iet.unipi.it> added the comment:

Don't worry, I'm a newer too.
No, your solution does not work, because the method you refer
(_write_data) is called by the toxml() function, but the newline is
replaced with a whitespace by the parsestring() function. The
parsestring function, as I already said, refers to the 'expat' module,
that is very complex (for me).


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list