parameters: (self, name, value)
return_statement: return __tmp
docstring: Set (or reset) an attribute carried by a node. If @name has
            a prefix, then the corresponding namespace-binding will be
            used, if in scope; it is an error it there's no such
             ns-binding for the prefix in scope.
docstring_summary: Set (or reset) an attribute carried by a node. If
docstring_tokens: Set ( or reset ) an attribute carried by a node . If
function: def setProp(self, name, value):
          """Set (or reset) an attribute carried by a node. If @name has
            a prefix, then the corresponding namespace-binding will be
            used, if in scope; it is an error it there's no such
             ns-binding for the prefix in scope. """
          ret = libxml2mod.xmlSetProp(self._o, name, value)
          if ret is None:raise treeError('xmlSetProp() failed')
          __tmp = xmlAttr(_obj=ret)
          return __tmp
function_tokens: def setProp ( self , name , value ) : ret = libxml2mod . xmlSetProp ( self . _o , name , value ) if ret is None : raise treeError ( 'xmlSetProp() failed' ) __tmp = xmlAttr ( _obj = ret ) return __tmp