[issue12129] Document Object Model API - validation

2011-06-02 Thread Kyle Keating
Kyle Keating added the comment: oops, the first xml element in the output should read "" not "" just a typo! don't get confused! -- ___ Python tracker <http:

[issue12129] Document Object Model API - validation

2011-06-02 Thread Kyle Keating
Kyle Keating added the comment: This looks to break pretty good... I did confirm this on 3.0, I'm guessing 3.2 is the same. import sys import xml.dom doc = xml.dom.getDOMImplementation().createDocument(None, 'xml', None) doc.firstChild.appendChild(doc.createElement('ele

[issue12129] Document Object Model API - validation

2011-05-20 Thread Kyle Keating
New submission from Kyle Keating : I was doing some tests on using this library and I noticed xml elements and attribute names could be created with mal-formed xml because special characters which can break validation are not cleaned or converted from their literal forms. Only the attribute