{
String project = commandLine.getValue(Options.PROJECT_OPTION);
String file = commandLine.getValue(Options.FILE_OPTION);
ArrayList<Error> results = new ArrayList<Error>();
DTDValidator validator = DTDValidator.getInstance();
ValidationReport result = validator.validate(toUri(project, file));
ValidationMessage[] messages = result.getValidationMessages();
for (int ii = 0; ii < messages.length; ii++){
StringBuffer message = new StringBuffer(messages[ii].getMessage());
for (Object o : messages[ii].getNestedMessages()){
ValidationMessage nested = (ValidationMessage)o;