Issue 7599: (c)ElementTree can produce invalid XML
Created on 2009-12-30 14:01 by jwilk, last changed 2022-04-11 14:56 by admin. This issue is now closed.
| Messages (2) | |||
|---|---|---|---|
| msg97032 - (view) | Author: Jakub Wilk (jwilk) | Date: 2009-12-30 14:01 | |
$ 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>
^
|
|||
| msg99408 - (view) | Author: Florent Xicluna (flox) * ![]() |
Date: 2010-02-16 13:50 | |
Duplicate of #5166. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:56:55 | admin | set | github: 51848 |
| 2010-02-16 13:50:26 | flox | set | status: open -> closed nosy:
+ flox superseder: ElementTree and minidom don't prevent creation of not well-formed XML |
| 2009-12-30 14:01:34 | jwilk | create | |
