Xmlvalidatingreader sample code

Hence, to track messages and detects errors the application must define an ad-hoc event handler.

The handler for the event has the following signature: The Message field returns the description of the error.

The Severity field represents the severity of the event.

The Xml Severity Type defines two levels of severity—Error and Warning.

In this case, the schema appears as a constituent part of the source document.