Specifies the type of validation to perform.
Assembly: System.Xml (in System.Xml.dll)
|No validation is performed. This setting 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.
| Obsolete. Validates if DTD or schema information is found.|
|Validates according to the DTD.|
| Obsolete. Validate according to XML-Data Reduced (XDR) schemas, including inline XDR schemas. XDR schemas are recognized using the x-schema namespace prefix or the Schemas property.|
|Validate according to XML Schema definition language (XSD) schemas, including inline XML Schemas. XML Schemas are associated with namespace URIs either by using the schemaLocation attribute or the provided Schemas property.|
The XmlReader class can enforce validation using a schema or document type definition (DTD). The enumeration specifies the type of validation the created XmlReader instance should perform. The XmlReader instance can be either a validating XmlReader object created by the Create method, or an XmlValidatingReader object.
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 document type definition (DTD) cannot be found, and status provides warnings if validation cannot be performed for elements and attributes from schemas.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.