System.Xml.ValidationType Enumeration

Assembly: System.Xml.dll
Namespace: System.Xml
Summary
Specifies the type of validation to perform.
C# Syntax:
[Serializable]
public enum ValidationType
Remarks
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 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.

See also:
System.Xml Namespace

System.Xml.ValidationType Member List:

Public Fields
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:


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.