[issue2647] XML munges apos entity in tag content

Martin v. Löwis report at bugs.python.org
Thu Apr 17 08:05:02 CEST 2008


Martin v. Löwis <martin at v.loewis.de> added the comment:

That's not a bug. The two XML documents are completely equivalent. If
you rely on the lexical representation of specific characters, you
should reconsider your usage of XML. toxml could have chosen to
represent < as &#60;, and that still would have been correct (IOW, it
doesn't even know anymore that you represented it as &lt; in the input).

----------
nosy: +loewis
resolution:  -> invalid
status: open -> closed

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2647>
__________________________________


More information about the Python-bugs-list mailing list