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 <rep...@bugs.python.org>
<http://bugs.python.org/issue23650>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to