SAXParserFactory factory = XMLUnit.getSAXParserFactory();
factory.setValidating(true);
try {
parser = factory.newSAXParser();
} catch (ParserConfigurationException ex) {
throw new ConfigurationException(ex);
}
this.validationInputSource = inputSource;
if (systemId != null) {
validationInputSource.setSystemId(systemId);