From a60b75af8645df6b2d0bac637f6ff0ff4b46c144 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Thu, 10 Nov 2005 01:11:02 +0000 Subject: [PATCH] * you have to specify None when reading the attributes, weird shit --- pisi/xml/xmlextcdom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pisi/xml/xmlextcdom.py b/pisi/xml/xmlextcdom.py index a8ac5f02..c503c114 100644 --- a/pisi/xml/xmlextcdom.py +++ b/pisi/xml/xmlextcdom.py @@ -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"""