Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

XmlUtils.CreateValidatingReader(Stream, XmlResolver, XmlSchemaSet, ValidationEventHandler) Method

Gets an appropriate XmlReader implementation for the supplied Stream.

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

Parameters

stream
The XML Stream that is going to be read.
xmlResolver
XmlResolver to be used for resolving external references
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