* Validate a document that is supplied via the pull interface
* (This requires the schema-aware version of Saxon)
*/
public void validate(PullProvider in) throws XPathException, IOException {
SchemaAwareConfiguration config = new SchemaAwareConfiguration();
in.getPipelineConfiguration().setConfiguration(config);
Receiver sink = new Sink();
sink.setPipelineConfiguration(in.getPipelineConfiguration());
Receiver validator = config.getDocumentValidator(
sink, in.getSourceLocator().getSystemId(), config.getNamePool(), Validation.STRICT, Whitespace.NONE, null);
validator.setPipelineConfiguration(in.getPipelineConfiguration());
//in = new PullTracer(in);
new PullPushCopier(in, validator).copy();
}