Verifier verifier = null;
XdmNode schemaNode = schema.read();
InputSource schemaSource = S9apiUtils.xdmToInputSource(runtime, schemaNode);
schemaSource.setSystemId(schemaNode.getBaseURI().toASCIIString());
Schema docSchema = vfactory.compileSchema(schemaSource);
verifier = docSchema.newVerifier();
verifier.setErrorHandler(new RNGErrorHandler());
doc = source.read();
docBaseURI = doc.getBaseURI();