* @throws FileNotFoundException if the specified file can not be located.
* @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);