reporting all errors, not just the last

This commit is contained in:
jstaerk
2022-09-19 09:52:26 +02:00
parent 654becbcf0
commit 07555ade79

View File

@@ -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++;
}
}