Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

XmlUtils.CreateValidatingReader(Stream, XmlSchemaSet, ValidationEventHandler) Method

Gets an appropriate XmlReader implementation for the supplied Stream.

[Visual Basic]
Public Overloads Shared Sub CreateValidatingReader( _
   ByVal stream As Stream, _
   ByVal schemas As XmlSchemaSet, _
   ByVal eventHandler As ValidationEventHandler _
)
[C#]
public static XmlReader CreateValidatingReader(
   Stream stream,
   XmlSchemaSet schemas,
   ValidationEventHandler eventHandler
);

Parameters

stream
The XML Stream that is going to be read.
schemas
XML schemas that should be used for validation.
eventHandler
Validation event handler.

Return Value

A validating XmlReader implementation.

See Also

XmlUtils Class | Spring.Util Namespace | XmlUtils.CreateValidatingReader Overload List