Validate a document tree in memory.

def schemaValidateDoc(self, doc):
        """Validate a document tree in memory. """
        if doc is None: doc__o = None
        else: doc__o = doc._o
        ret = libxml2mod.xmlSchemaValidateDoc(self._o, doc__o)
        return ret