(chore) fix api usage

This commit is contained in:
Andreas Penski 2020-12-17 07:20:10 +00:00
parent 113f1c7926
commit 34a109d8e6

View file

@ -54,7 +54,7 @@ public class StandardExample {
// Load scenarios.xml from classpath // Load scenarios.xml from classpath
URL scenarios = this.getClass().getClassLoader().getResource("scenarios.xml"); URL scenarios = this.getClass().getClassLoader().getResource("scenarios.xml");
// Load the rest of the specific Validator configuration from classpath // Load the rest of the specific Validator configuration from classpath
Configuration config = Configuration.load(scenarios.toURI()); Configuration config = Configuration.load(scenarios.toURI()).build();
// Use the default validation procedure // Use the default validation procedure
Check validator = new DefaultCheck(config); Check validator = new DefaultCheck(config);
// Validate a single document // Validate a single document