Parsing XML documents with validation

Parsing with validation follows the same basic process as for a non-validating parse, with a couple of differences. Firstly, the validating parser must be loaded into storage prior to use. Secondly, an additional step is required to load a pre-processed version of the schema used to validate the document during the parse. This binary schema, referred to as an Optimized Schema Representation (OSR) can be loaded once, and used to validate any document that conforms to it.

For more information on loading the validating parser, see Loading the validating parser code. For more information on OSRs, see Optimized Schema Representation.