if ( is == null ) {
throw new ReaderException("the file "+fileName+" cannot be found in the classpath");
}
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setValidating(false);
DocumentBuilder db = null;
try {
db = dbf.newDocumentBuilder();
} catch (ParserConfigurationException pce) {
ErrorHandler.reportError("Exception during parser configuration",pce);
throw new ReaderException("Exception during parser configuration:" + pce.getMessage());
}
Document doc = null;
try {
doc = db.parse(is);
} catch (SAXException se) {
ErrorHandler.reportError("Exception while parsing the file", se);
throw new ReaderException(
"Exception while parsing the file:" + se.getMessage());
} catch (IOException ioe) {