Saxon.Api

Class DocumentBuilder

Class DomDestination

Class DynamicContext

Class DynamicError

Class EmptyEnumerator

Class ExtensionFunctionCall

Class ExtensionFunctionDefinition

Class InvalidityHandlerWrapper

Class NamespaceConstant

Class NullDestination

Class Processor

Class QName

Class SchemaManager

Class SchemaValidator

Class Serializer

Class StandardLogger

Class StaticContext

Class StaticError

Class TextWriterDestination

Class WhitespacePolicy

Class XPathCompiler

Class XPathExecutable

Class XPathSelector

Class XQueryCompiler

Class XQueryEvaluator

Class XQueryExecutable

Class XdmAnyFunctionType

Class XdmAnyItemType

Class XdmAnyNodeType

Class XdmArray

Class XdmAtomicType

Class XdmAtomicValue

Class XdmDestination

  - Class TreeProtector

Class XdmEmptySequence

Class XdmExternalObjectValue

Class XdmFunctionItem

Class XdmItem

Class XdmItemType

Class XdmMap

Class XdmNode

Class XdmNodeKind

Class XdmSequenceType

Class XdmValue

Class XmlDestination

Class Xslt30Transformer

Class XsltCompiler

Class XsltExecutable

  - Class ParameterDetails

Class XsltPackage

Class XsltTransformer

Enum RecoveryPolicy

Enum SchemaValidationMode

Enum TreeModel

Enum XdmAxis

Interface IInvalidityHandler

Interface IMessageListener

Interface IQueryResolver

Interface IResultDocumentHandler

Interface IXdmEnumerator

Interface IXmlLocation

Interface SchemaResolver

 

Saxon.Api
Interface IInvalidityHandler


public interface IInvalidityHandler
implements object

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


Method Summary
 void startReporting(string systemId)

At the start of a validation episode, initialize the handler

 void reportInvalidity(StaticError failure)

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

 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).

 
Method Detail

startReporting

public void startReporting(string systemId)

At the start of a validation episode, initialize the handler

Parameters:
systemId -
systemId optional; may be used to represent the destination of any report produced

reportInvalidity

public void reportInvalidity(StaticError failure)

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

Parameters:
failure -
failure details of the validation error

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