Package: cxml-rng

Function make-validator

Lambda List

make-validator (schema &optional handler)


  • schema -- the parsed Relax NG schema object
  • handler -- an additional SAX handler to broadcast events to

Return Value

a SAX handler


This function creates a validation handler for schema, to be used for validation of a document against that schema.

The validation handler processes SAX events and can be used with any function generating such events, in particular with cxml:parse-file.

Events will be passed on unchanged to handler.

This validator does not perform DTD compatibility processing. (Specify a DTD compatibility handler as the second argument to this function instead.)


See also