[XML-SIG] getAttributeNS
Fred L. Drake, Jr.
fdrake@acm.org
Wed, 31 Oct 2001 13:20:48 -0500
Jan Delgado writes:
> 1. getAttribute() does not find my attributes
Whether to use the *NS flavor (DOM Level 2) or the Level 1 flavor
(no NS) depends on whether you've enabled namespaces.
> 2. for case a) i have to call getAttributeNS(None, "attrname")
> 3. for case b) i have to call getAttributeNS('', "attrname")
This looks like a bug to me; if namespaces are being used, case 2
should work consistently. In the Python DOM binding, "no namespace"
is spelled using None rather than the empty string.
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
PythonLabs at Zope Corporation