if(log.isTraceEnabled())
{
log.trace("loading xsd from string");
}
LSInputAdaptor input = new LSInputAdaptor(data, encoding);
XSImplementation impl = getXSImplementation();
XSLoader schemaLoader = impl.createXSLoader(null);
setDOMErrorHandler(schemaLoader);
return schemaLoader.load(input);