public void checkApplication() throws IOException {
        validate(validators.servicesXmlValidator(), servicesFileName());
        validateOptional(validators.hostsXmlValidator(), FilesApplicationPackage.HOSTS);
        validateOptional(validators.deploymentXmlValidator(), FilesApplicationPackage.DEPLOYMENT_FILE.getName());
        validateOptional(validators.validationOverridesXmlValidator(), FilesApplicationPackage.VALIDATION_OVERRIDES.getName());
        validateRouting(appDirs.routingTables());
    }
Validation of xml files in application package against RELAX NG schemas.

@author hmusum
config-application-package/src/main/java/com/yahoo/config/model/application/provider/ApplicationPackageXmlFilesValidator.java