spf.setNamespaceAware(true);
saxParser = spf.newSAXParser();
} catch (Exception pce) {
String errMsg = "Parser configuration error occured";
addError(errMsg, pce);
throw new JoranException(errMsg, pce);
}
try {
saxParser.parse(inputSource, this);
return saxEventList;
} catch (IOException ie) {
String errMsg = "I/O error occurred while parsing xml file";
addError(errMsg, ie);
throw new JoranException(errMsg, ie);
} catch (Exception ex) {
String errMsg = "Problem parsing XML document. See previously reported errors. Abandoning all further processing.";
addError(errMsg, ex);
throw new JoranException(errMsg, ex);
}
}