private static void validateXmlDocumentUsingRng(final String xmlFileName, final String validationFileName)
throws SAXException, IOException, ApplicationException {
final ValidationDriver validationDriver = new ValidationDriver();
if (!validationDriver.loadSchema(new InputSource(
XmlUtils.class.getResourceAsStream("/" + validationFileName)))) {
throw new ApplicationException("Error during loading RNG schema");
}
if (!validationDriver.validate(ValidationDriver.fileInputSource(xmlFileName))) {
throw new ApplicationException("Error during parsing project file");