[issue5767] xmlrpclib loads invalid documents

Fredrik Lundh report at bugs.python.org
Thu Apr 16 17:51:26 CEST 2009


Fredrik Lundh <fredrik at effbot.org> added the comment:

sgmlop doesn't do much validation; to quote the homepage: "[sgmlop] is 
tolerant, and happily accepts XML-like data that are not well-formed. If 
you need strictness, use another parser."

But given that Python ships with cElementTree these days, and 
cElementTree's XMLParser (based on expat) is faster than both sgmlop and 
pyexpat, maybe it's time to remove sgmlop support from xmlrpclib...

----------

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


More information about the Python-bugs-list mailing list