xmerl_xsd

MODULE

xmerl_xsd

MODULE SUMMARY

Interface module for XML Schema vlidation.

DESCRIPTION

Interface module for XML Schema vlidation.
It handles the W3.org
specifications
of XML Schema second edition 28 october 2004. For an introduction to
XML Schema study part 0.
An XML structure is validated by xmerl_xsd:validate/[2,3].

EXPORTS

Reads the schema state with all information of the processed
schema from a file created with state2file/[1,2]. The
format of this file is internal. The state can then be used
validating an XML document.

Reads the referenced XML schema and checks that it is valid.
Returns the global_state() with schema info or an
error reason. The error reason may be a list of several errors
or a single error encountered during the processing.

Reads the referenced XML schemas and controls they are valid.
Returns the global_state() with schema info or an
error reason. The error reason may be a list of several errors
or a single error encountered during the processing.

A call to validate/2 or validate/3 must provide a well formed
parsed XML element #xmlElement{} and a State,
global_state(), which holds necessary information from
an already processed schema.
Thus validate enables reuse of the schema information and
therefore if one shall validate several times towards the same
schema it reduces time consumption.

The result, ValidElement, is the valid element that conforms to the
post-schema-validation infoset. When the validator finds an error it
tries to continue and reports a list of all errors found. In those cases
an unexpected error is found it may cause a single error reason.