def parse_schema_file(file_name, files={}, repr_=Thier_repr(with_ns=False), skip_errors=False):
 elt = etree.fromstring(open(file_name, 'rb').read(), parser=PARSER)
 wd = abspath(dirname(file_name))
 return XmlSchemaParser(files, wd, repr_=repr_, skip_errors=skip_errors).parse_schema(elt)

def parse_schema_file ( file_name , files = { } , repr_ = Thier_repr ( with_ns = False ) , skip_errors = False ) : elt = etree . fromstring ( open ( file_name , 'rb' ) . read ( ) , parser = PARSER ) wd = abspath ( dirname ( file_name ) ) return XmlSchemaParser ( files , wd , repr_ = repr_ , skip_errors = skip_errors ) . parse_schema ( elt )
parses a schema file and returns a _schema object .