Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

ValidationType Enumeration

Specifies the type of validation to perform.

Namespace:  System.Xml
Assembly:  System.Xml (in System.Xml.dll)
'Declaration
Public Enumeration ValidationType
Member nameDescription
Auto Obsolete. Validates if DTD or schema information is found.
NoteNote

This field is obsolete in the Microsoft .NET Framework version 2.0 and is applicable only to the XmlValidatingReader class.

DTDValidates according to the DTD.
Supported by the XNA FrameworkNoneNo 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.

Supported by the XNA FrameworkSchemaValidate 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.
XDR 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.
NoteNote

This field is obsolete in the Microsoft .NET Framework version 2.0 and is applicable only to the XmlValidatingReader class.

The XmlReader class can enforce validation using a schema or document type definition (DTD). The ValidationType 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.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.