DocStax2Validation

How to use Stax2 Validation API

What is it?

Stax2 Validation API is defined under org.codehaus.stax2.validation package, and implemented by Woodstox 3.0 and above (including pre-3.0 release candidates).
It is an API that defines a bi-directional (both reader and writer side) extensible, pluggable (allows external implementation), dynamic (can start and stop validation during parsing) and powerful (allows validation using more than one validator) validation. Woodstox 3.0 contains implementations for two standard validation languages (DTD, Relax NG), and in future hopefully more (at least W3C Schema, and perhaps some subset of Schematron?).

Is there example code available?

Yes. Example code can be found from under src/samples in the source repository (and source distribution). Existing classes cover various aspects of validation as follows:

Labels

 
(None)