Specifies the type of validation to perform.
[Visual Basic] <Serializable> Public Enum ValidationType [C#] [Serializable] public enum ValidationType [C++] [Serializable] __value public enum ValidationType [JScript] public Serializable enum ValidationType
The validation model has three characteristics, strict, informative, and status. Strict, does not allow the mixing of validation types, informative provides a warning if the schema or DTD cannot be found, and status provides warnings if validation cannot be performed for elements and attributes from schemas.
If no ValidationType is specified, the default is ValidationType.Auto.
Refer to Validation Types of the XmlValidatingReader to see a table detailing the behavior of each of the validation types.
|Auto||XmlValidatingReader validates if DTD or schema information is found.|
|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 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 Schemas property.|
|XDR||Validate according to XDR schemas; including inline schemas. XDR schemas are recognized using the x-schema namespace prefix or the Schemas property.|
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: System.Xml (in System.Xml.dll)