Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ValidationType Enumeration
Collapse the table of content
Expand the table of content

ValidationType Enumeration

Specifies the type of validation to perform.

Namespace: System.Xml
Assembly: System.Xml (in system.xml.dll)

public enum ValidationType
public enum ValidationType
public enum ValidationType

 Member nameDescription
AutoValidates if DTD or schema information is found. 

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 .NET Compact 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 .NET Compact 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. 
XDRValidate 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. 

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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0

XNA Framework

Supported in: 1.0

Community Additions

© 2015 Microsoft