Message101158
What about this example?
>>> from xml.dom import minidom
>>> doc = minidom.Document()
>>> el = doc.createElement("Test")
>>> el.setAttribute("with space", "False")
>>> doc.appendChild(el)
<DOM Element: Test at 0xba1440>
>>>
>>> #nahhh
... minidom.parseString(doc.toxml())
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "C:\Python26\lib\xml\dom\minidom.py", line 1928, in parseString
return expatbuilder.parseString(string)
File "C:\Python26\lib\xml\dom\expatbuilder.py", line 940, in parseString
return builder.parseString(string)
File "C:\Python26\lib\xml\dom\expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 33
>>>
Is it worth making another bug report? |
|
Date |
User |
Action |
Args |
2010-03-16 08:10:27 | nvetoshkin | set | recipients:
+ nvetoshkin, effbot, ods, strangefeatures, jwilk, flox |
2010-03-16 08:10:26 | nvetoshkin | set | messageid: <1268727026.33.0.105304745944.issue5166@psf.upfronthosting.co.za> |
2010-03-16 08:10:25 | nvetoshkin | link | issue5166 messages |
2010-03-16 08:10:24 | nvetoshkin | create | |
|