Check the document for potential content problems, and
           output the errors to @output

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