Set (or reset) an attribute carried by a node. The ns
           structure must be in scope, this is not checked

def setNsProp(self, node, name, value):
        """Set (or reset) an attribute carried by a node. The ns
           structure must be in scope, this is not checked """
        if node is None: node__o = None
        else: node__o = node._o
        ret = libxml2mod.xmlSetNsProp(node__o, self._o, name, value)
        if ret is None:raise treeError('xmlSetNsProp() failed')
        __tmp = xmlAttr(_obj=ret)
        return __tmp