// now install the current output in the filter chain...
// ####
ContentHandler handler = filter.getContentHandler();
handler.startDocument();
invokeBody( new XMLOutput( handler ) );
handler.endDocument();
valid = filter.isValid();
}
else {
// outputting the errors to the current output
verifier.setErrorHandler(
new ErrorHandler() {
public void error(SAXParseException exception) throws SAXException {
outputException(output, "error", exception);
}
public void fatalError(SAXParseException exception) throws SAXException {
outputException(output, "fatalError", exception);
}
public void warning(SAXParseException exception) throws SAXException {
outputException(output, "warning", exception);
}
}
);
VerifierHandler handler = verifier.getVerifierHandler();
handler.startDocument();
invokeBody( new XMLOutput( handler ) );
handler.endDocument();
valid = handler.isValid();
}
handleValid(valid);
}