// other overloaded methods allows you to parse a schema from InputSource, URL, etc.
Verifier verifier = factory.newVerifier(new File(args[0]));
// set the error handler. This object receives validation errors.
// you can pass any class that implements org.sax.ErrorHandler.
verifier.setErrorHandler( new ReportErrorHandler() );
// use the verify method to validate documents.
// or you can validate SAX events by using the getVerifierHandler method.
for( int i=1; i<args.length; i++ )
if(verifier.verify(args[i]))