Java validating xml against schema
Copyright © 1993, 2018, Oracle and/or its affiliates.
package provides an API for XML documents validation.
However, it's usually done before any further processing of the input takes place.
(This description is painted with broad strokes -- there are exceptions.)Until recently, the exact Application Programming Interface (API) by which programs requested validation varied with the schema language and parser.
This is useful for adding constraints that are more easily checked in a Turing-complete language like Java than in a declarative language like the W3C XML Schema language.
You can define a mini-schema language, write a quick implementation, and plug it into the validation layer.
Then, install your JAR in one of these four locations.
The validation process verify that an XML document is an instance of a specified XML schema file or XSD file.