[issue23650] xml.etree.ElementTreee.write can't parse its own output

Ned Deily report at bugs.python.org
Thu Mar 12 20:48:58 CET 2015


Ned Deily added the comment:

This is a duplicate of Issue5166.  Note that in your example, you are not serializing valid XML 1.0: \x1b (ESC) is not a valid XML character, it has to be escaped and, as the discussion in Issue5166 points out, etree does not automatically do that for you.

----------
nosy: +ned.deily
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> ElementTree and minidom don't prevent creation of not well-formed XML

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23650>
_______________________________________


More information about the Python-bugs-list mailing list