Saxon.Api

 

 

Saxon.Api

Interface IInvalidityHandler


public interface IInvalidityHandler

Interface for reporting validation errors found during validation of an instance document against a schema.

Method Summary

 XdmValue EndReporting ()

At the end of a validation episode, do any closedown actions, and optionally return information collected in the course of validation (for example a list of error messages).

 void ReportInvalidity (ValidationFailure i)

Report a validation error found during validation of an instance document against a schema.

 void StartReporting (string systemId)

At the start of a validation episode, initialize the handler.

 

Method Detail

EndReporting

public XdmValue EndReporting()

At the end of a validation episode, do any closedown actions, and optionally return information collected in the course of validation (for example a list of error messages).

Returns:

A value to be associated with a validation exception. May be the empty sequence. In the case of the InvalidityReportGenerator, this returns the XML document containing the validation report. This will be the value returned as the value of the variable $err:value during try/catch processing.

ReportInvalidity

public void ReportInvalidity(ValidationFailure i)

Report a validation error found during validation of an instance document against a schema.

Parameters:

i - Details of the validation error.

StartReporting

public void StartReporting(string systemId)

At the start of a validation episode, initialize the handler.

Parameters:

systemId - Optional; may be used to represent the destination of any report produced.