114115116117118119120121122123124
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);
123124125126127128129130131132133
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 {