The following code example creates an Xml Validating Reader that takes an Xml Text Reader.
The input file, Head Count.xml, is validated against an external DTD file, Head
If no event handler is provided, an exception is thrown for the first validation error with .
An Xml Schema Exception is thrown if the validation error occurred while validating against a schema or DTD.
Validation errors and warnings are reported through the Validation Event Handler callback.
If no Validation Event Handler is supplied and a parse error occurs, the error is reported by raising an Xml Exception.
Load Dim reader As Xml Validating Reader = New Xml Validating Reader( _ New Xml Text Reader(New String Reader(target))) reader.
Any severity types and error messages are displayed.
The Entity Handling property defines the way the Xml Validating Reader handles entities.
Name) End If End While End Sub @̂悤ɁAu Entity Referencev܂̂QƂm[h邱Ƃ͂ȂȂȂɁu Textv܂e LXg QƂm[hĂB̓e ÂWJeƂȂĂB @ȂA.
NET Framework version 1.1, there have been many updates to the XML classes.