SchemaGrammar parseXMLSchema(XMLInputSource xmlinputsource) throws IOException {
org.apache.xerces.xni.parser.XMLEntityResolver xmlentityresolver = getEntityResolver();
if(xmlentityresolver != null)
fSchemaLoader.setEntityResolver(xmlentityresolver);
if(super.fErrorReporter.getMessageFormatter("http://www.w3.org/TR/xml-schema-1") == null)
super.fErrorReporter.putMessageFormatter("http://www.w3.org/TR/xml-schema-1", new XSMessageFormatter());
fSchemaLoader.setProperty("http://apache.org/xml/properties/internal/error-reporter", super.fErrorReporter);
String s = "http://apache.org/xml/properties/";
String s1 = s + "schema/external-schemaLocation";
fSchemaLoader.setProperty(s1, getProperty(s1));
s1 = s + "schema/external-noNamespaceSchemaLocation";