code: def xpathNextAncestor(self, ctxt):
          
          if ctxt is None: ctxt__o = None
          else: ctxt__o = ctxt._o
          ret = libxml2mod.xmlXPathNextAncestor(ctxt__o, self._o)
          if ret is None:raise xpathError('xmlXPathNextAncestor() failed')
          __tmp = xmlNode(_obj=ret)
          return __tmp
docs: Traversal function for the "ancestor" direction the
            ancestor axis contains the ancestors of the context node;
            the ancestors of the context node consist of the parent of
            context node and the parent's parent and so on; the nodes
            are ordered in reverse document order; thus the parent is
            the first node on the axis, and the parent's parent is the
             second node on the axis