[Serializable] |
If a schema or DTD is provided, the XmlValidatingReader.SchemaType property and XmlValidatingReader.ReadTypedValue method can be used to provide the type information.
If no ValidationType is specified, the default is ValidationType.Auto.
Refer to the conceptual topic at MSDN: validationtypesofxmlvalidatingreader to see a table detailing the behavior of each of the validation types.
Auto | |
DTD | Validates according to the DTD. |
None | Creates an XML 1.0 compliant non-validating parser. Default attributes are reported and general entities can be resolved by calling XmlValidatingReader.ResolveEntity. The DOCTYPE is not used for validation purposes. No validation errors are thrown. |
Schema | Validate according to XSD schemas; including inline schemas. XSD schemas are associated with namespace URIs either by using the schemaLocation attribute or the provided XmlValidatingReader.Schemas property. |
XDR | Validate according to XDR schemas; including inline schemas. XDR schemas are recognized using the x-schema namespace prefix or the XmlValidatingReader.Schemas property. |
Hierarchy: