int result = XMLUtil.checkIfWellFormed(filename, errorList);
switch (result) {
case XMLUtil.ILL_FORMED:
case XMLUtil.UNRECOVERABLE_ERROR:
errorList.add(
new ErrorItem(
"Problem parsing XML document. See previously reported errors. Abandoning all furhter processing."));
return;
}
FileInputStream fis = null;
try {
fis = new FileInputStream(filename);
doConfigure(fis, repository);
} catch (IOException ioe) {
String errMsg = "Could not open [" + filename + "].";
getLogger(repository).error(errMsg, ioe);
ec.addError(new ErrorItem(errMsg, ioe));
} finally {
if (fis != null) {
try {
fis.close();
} catch (java.io.IOException e) {