// create a VerifierFilter and configure it
// so that error messages will be sent to the core,
Verifier v = new Verifier(
new REDocumentDeclaration(grammar),
new ErrorHandlerToEventHandler(_core,locator) );
v.setPanicMode( true );
return new ValidatingUnmarshaller(
new VerifierFilter( v ), _core );
}