The
Schema interface defines an abstraction of a schema usable to
validate an XML document.
This interface is not tied to any specific validation grammar language
such as the W3C XML Shema language
or the RELAX-NG language.
Selection and use of specific schema grammar languages is performed through
the use of the
Validator interface.
Once returned by the
SchemaParser , a
Schema instance must be
able to validate a number of XML documents: each time a document needs to be
validated, a new
ValidationHandler can be obtained invoking the
Schema.createValidator(ErrorHandler) method. |