Open
Description
It would be really nice to be able to check documents and obtain the error/warning messages programmatically.
Currently, the function 'Validator.validate' simply dumps the output to the logger, and returns an integer indicating whether any errors were detected.
At a very basic level, it would be nice to simply have a function that invokes vnu.jar and returns its output as a string or a list of strings.
A nicer interface would be to invoke vnu.jar in "json" mode and parse the output into a Python dictionary.
Would you be open to adding such an API?
Metadata
Assignees
Labels
No labels
Activity