[XML-SIG] Pyexpat and namespaces
Alexandre Fayolle
Alexandre.Fayolle@logilab.fr
Thu, 22 Nov 2001 18:02:48 +0100 (CET)
When using pyexpat with feature_namespaces enabled, startElementNS is
called with qname set to None. This is documented as a possible behaviour
in the ContentHandler documentation.
However, the instance of AttributesNSImpl passed as attrs parameter is
created with the qname argument set to an empty dictionnary. As a
consequence, calling getValueByQName, getNameByQName, getQNameByName,
getQNames will lead to an exception or an unexepected result.
I think this should be noted somewhere in the standard library
documentation too.
Opinions?
Alexandre Fayolle
--
LOGILAB, Paris (France).
http://www.logilab.com http://www.logilab.fr http://www.logilab.org
Narval, the first software agent available as free software (GPL).