Document doc = dBuilder.parse(configurationFile);
doc.getDocumentElement().normalize();
return doc;
}
catch(SAXException ex) {
throw new ConfigurationException("Configuration XML file is invalid: " +
ex.getMessage());
}
catch(ParserConfigurationException ex) {
throw new ConfigurationException(ex.getMessage());
}
catch(IOException ex) {
throw new ConfigurationException(ex.getMessage());
}
}