* @throws Exception if an error occurs parsing the file to a DOM.
*/
public static Document initializeFile(File pXmlFile, boolean pValidateDoc)
throws Exception {
XMLToolsFactory factory = DefaultXMLToolsFactory.getInstance();
XMLToDOMParser parser = factory.createXMLToDOMParser();
// XXX: god damn logging
ApplicationLoggingImpl logger = new ApplicationLoggingImpl(
"[UnitTests.base:atg.junit.nucleus.XmlUtils]"
);
DefaultErrorHandler errorHandler = new DefaultErrorHandler(logger, true, true);
return parser.parse(new FileInputStream(pXmlFile), pValidateDoc, errorHandler);
}