parameters: (self, name, value)
return_statement: return __tmp
docstring: Create a new property carried by a document.
docstring_summary: Create a new property carried by a document.
docstring_tokens: Create a new property carried by a document .
function: def newDocProp(self, name, value):
          """Create a new property carried by a document. """
          ret = libxml2mod.xmlNewDocProp(self._o, name, value)
          if ret is None:raise treeError('xmlNewDocProp() failed')
          __tmp = xmlAttr(_obj=ret)
          return __tmp
function_tokens: def newDocProp ( self , name , value ) : ret = libxml2mod . xmlNewDocProp ( self . _o , name , value ) if ret is None : raise treeError ( 'xmlNewDocProp() failed' ) __tmp = xmlAttr ( _obj = ret ) return __tmp