def newDocText(self, content):
        """Creation of a new text node within a document. """
        ret = libxml2mod.xmlNewDocText(self._o, content)
        if ret is None:raise treeError('xmlNewDocText() failed')
        __tmp = xmlNode(_obj=ret)
        return __tmp
def newDocText ( self , content ) : ret = libxml2mod . xmlNewDocText ( self . _o , content ) if ret is None : raise treeError ( 'xmlNewDocText() failed' ) __tmp = xmlNode ( _obj = ret ) return __tmp
Creation of a new text node within a document.