System.out.println( name + " completed" );
return;
}
XMLReader r = factory.newSAXParser().getXMLReader();
Verifier v = new Verifier(
new REDocumentDeclaration(grammar),
// new REDocumentDeclaration(grammar.getTopLevel(),localPool),
new ErrorHandlerImpl() );
r.setContentHandler(v);
try
{
r.parse(fileName);
if(!v.isValid()) throw new Error();
System.out.print('.');
}
catch( ValidityViolation vv )
{
System.out.println( name + ':' + fileName + " invalid " + vv.getMessage() );