[XML-SIG] Bug in dom/ext/reader/PyExpat.py

Rich Salz rsalz@zolera.com
Mon, 30 Jul 2001 12:11:00 -0400


In startElement, around line 130:
                if (prefix or value):
                    self._namespaces[prefix] = attribs[curr_attrib_key]
                else:
                    del self._namespaces[prefix]

If nested nodes change the default namespace, this can raise an
exception.  I'm not sure which fix is better:
	if (prefix or prefix == '' or value):
or
	if (prefix != None or value):

comments?
-- 
Zolera Systems, Your Key to Online Integrity
Securing Web services: XML, SOAP, Dig-sig, Encryption
http://www.zolera.com