class MyErrorHandler implements ErrorHandler {
public void warning(SAXParseException ex) throws SAXException {
Log log = LogFactory.getLog(MyErrorHandler.class);
if (log.isDebugEnabled())
log.debug("ParserUtils: warning ", ex);
// We ignore warnings
}
public void error(SAXParseException ex) throws SAXException {
throw ex;