code: 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
docs: Create a new property carried by a document.