This artifact provides implementations of the Java XML validation API SchemaFactory
as a Java Service for the following languages :
- RelaxNG XML syntax -
http://relaxng.org/ns/structure/1.0
- RelaxNG Compact syntax -
http://www.iana.org/assignments/media-types/application/relax-ng-compact-syntax
- ISO Schematron -
http://purl.oclc.org/dsdl/schematron
- Schematron 1.5 -
http://www.ascc.net/xml/schematron
- NVDL -
http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0
These implementations are wrappers over James Clack's Jing validation engine.
String schemaLanguage = // One of the namespaces above...
javax.xml.validationSchemaFactory.newInstance(schemaLanguage);
Please note that you'll need to add your Jing distribution as a dependency.
I put it in provided
scope because the only version available on Maven Central is quite outdated, so you keep the ability to build and use a newer release. (For ISO Schematron, this is mandatory.)