[New-bugs-announce] [issue7599] (c)ElementTree can produce invalid XML

Jakub Wilk report at bugs.python.org
Wed Dec 30 15:01:35 CET 2009


New submission from Jakub Wilk <ubanus at users.sf.net>:

$ cat buggy.py 
import sys
from xml.etree import ElementTree as et
root = et.Element('root')
root.text = u'\x07'
et.ElementTree(root).write(sys.stdout)

$ python buggy.py | xmllint -
-:1: parser error : PCDATA invalid Char value 7
<root></root>
      ^

----------
components: Library (Lib)
messages: 97032
nosy: jwilk
severity: normal
status: open
title: (c)ElementTree can produce invalid XML
type: behavior
versions: Python 2.5, Python 2.6

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


More information about the New-bugs-announce mailing list