mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-25 16:55:39 +00:00
make java snippet explicit
This commit is contained in:
parent
3e4aa9f957
commit
e26cbc9613
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ A concrete example with a specific validator configuration can be found on
|
||||||
### Application User Interface (API / embedded usage)
|
### Application User Interface (API / embedded usage)
|
||||||
|
|
||||||
The validator can also be used in own Java Applications via the API. Usage would be something like this:
|
The validator can also be used in own Java Applications via the API. Usage would be something like this:
|
||||||
```
|
```java
|
||||||
Path scenarios = Paths.get("scenarios.xml");
|
Path scenarios = Paths.get("scenarios.xml");
|
||||||
Configuration config = Configuration.load(scenarios.toUri());
|
Configuration config = Configuration.load(scenarios.toUri());
|
||||||
Input document = InputFactory.read(testDocument);
|
Input document = InputFactory.read(testDocument);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue