John Cassidy added the comment:

I added the line print(str(doc)) after the call to getDomImplementation and 
verified that the errors that I'm seeing are coming from the xml.dom.minidom 
implemenation of xml.dom.  Checking minidom.py I did not see any validation on 
the tagName that gets passed to createElement.  
http://www.w3.org/TR/xml11/#NT-NameStartChar lists the format of allowed names. 
 Attached is a file containing the functions I was working on.  My thinking is 
that if the tagName is not valid a ValueError should be thrown.

----------
nosy: +jocassid
Added file: http://bugs.python.org/file31060/xmlNameVerification.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12129>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to