def schemaNewParserCtxt(URL):
    """Create an XML Schemas parse context for that file/resource
       expected to contain an XML Schemas file. """
    ret = libxml2mod.xmlSchemaNewParserCtxt(URL)
    if ret is None:raise parserError('xmlSchemaNewParserCtxt() failed')
    return SchemaParserCtxt(_obj=ret)