final public void doConfigure(final InputSource inputSource) {
// This line is needed here because there is logging from inside this method.
selfInitialize(this.context);
ExecutionContext ec = joranInterpreter.getExecutionContext();
SAXParser saxParser = null;
try {
SAXParserFactory spf = SAXParserFactory.newInstance();
spf.setValidating(false);
spf.setNamespaceAware(true);
saxParser = spf.newSAXParser();
} catch (Exception pce) {
String errMsg = "Parser configuration error occured";
ec.addError(errMsg, pce);
return;
}
try {
// attachListAppender(context);
saxParser.parse(inputSource, joranInterpreter);
} catch(IOException ie) {
final String errMsg = "I/O error occurred while parsing xml file";
ec.addError(errMsg, ie);
} catch (Exception ex) {
final String errMsg = "Problem parsing XML document. See previously reported errors. Abandoning all further processing.";
addError(errMsg, ex);
return;
} finally {