code: def debugCheckDocument(self, output):
          
          ret = libxml2mod.xmlDebugCheckDocument(output, self._o)
          return ret
docs: Check the document for potential content problems, and
             output the errors to @output