reporting all errors, not just the last
This commit is contained in:
@@ -408,6 +408,12 @@ public class XMLValidator extends Validator {
|
||||
throw new IrrecoverableValidationError(e.getMessage());
|
||||
}
|
||||
Document SVRLReport = new SVRLMarshaller().getAsDocument(sout);
|
||||
String SVRLReports = new SVRLMarshaller().getAsString(sout);
|
||||
try {
|
||||
Files.writeString(Paths.get("C:\\Users\\jstaerk\\workspace\\mustangproject\\log\\detail3.log"), SVRLReports, StandardCharsets.UTF_8);
|
||||
} catch (Exception e) {
|
||||
|
||||
}
|
||||
XPath xPath = XPathFactory.newInstance().newXPath();
|
||||
String expression = "//*[local-name() = 'failed-assert']";
|
||||
NodeList failedAsserts = null;
|
||||
@@ -444,7 +450,6 @@ public class XMLValidator extends Validator {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
LOGGER.info("FailedAssert ", thisFailText);
|
||||
|
||||
@@ -453,6 +458,7 @@ public class XMLValidator extends Validator {
|
||||
.setPart(EPart.fx));
|
||||
failedRules++;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user