def SchemaValidate ( self , xsd ) : ret = libxml2mod . xmlTextReaderSchemaValidate ( self . _o , xsd ) return ret
validate xml with xsd file using python
Use W3C XSD schema to validate the document as it is processed . Activation is only possible before the first Read () . If
def SchemaValidate(self, xsd):
        """Use W3C XSD schema to validate the document as it is
          processed. Activation is only possible before the first
          Read(). If @xsd is None, then XML Schema validation is
           deactivated. """
        ret = libxml2mod.xmlTextReaderSchemaValidate(self._o, xsd)
        return ret