}
LSInputAdaptor input = new LSInputAdaptor(reader, encoding);
XSImplementation impl = getXSImplementation();
XSLoader schemaLoader = impl.createXSLoader(null);
setDOMErrorHandler(schemaLoader);
if(schemaResolver != null)
{
setResourceResolver(schemaLoader, schemaResolver);
}
return schemaLoader.load(input);
}