* you have to specify None when reading the attributes, weird shit

This commit is contained in:
Eray Özkural
2005-11-10 01:11:02 +00:00
parent 8982c06e54
commit a60b75af86
+2 -2
View File
@@ -71,10 +71,10 @@ def newTextNode(node, text):
def getNodeAttribute(node, attrname):
"""get named attribute from DOM node"""
if not node.hasAttributeNS(XML_NS, attrname):
if not node.hasAttributeNS(None, attrname):
return None
else:
return node.getAttributeNS(XML_NS, attrname)
return node.getAttributeNS(None, attrname)
def getChildElts(node):
"""get only child elements"""