mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-25 16:55:39 +00:00
(chore) fix api usage
This commit is contained in:
parent
113f1c7926
commit
34a109d8e6
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue