GrammarPool grammarPool = ( schemaUris == null ? null : GrammarPoolManager.getGrammarPool( schemaUris ) ); XMLParserConfiguration parserConfig = createValidatingParser( new RedirectingEntityResolver(), grammarPool ); parserConfig.setErrorHandler( new XMLErrorHandler() {