Grammar grammar = SRELAXNGReader.parse( args[0], factory, new DebugController(false,false) );
if(grammar==null) return;
// setup verifier
RelmesVerifier verifier = new RelmesVerifier(
new REDocumentDeclaration(grammar), new ReportErrorHandler() );
XMLReader reader = factory.newSAXParser().getXMLReader();
reader.setContentHandler(verifier);
try {
for( int i=1; i<args.length; i++ ) {