This is preliminary documentation and subject to change. To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
Validation Enumeration
Specifies the type of validation to perform.
[Visual Basic]
Public Enum Validation
[C#]
public enum Validation
[C++]
public enum Validation
[JScript] In JScript, you can use the enumerations in the NGWS frameworks, but you cannot define your own.
Members
Member Name
Description
Auto
The Auto member does the following:
If there is no DTD or schema, it will parse the XML without validation.
If there is a DTD defined in a <!DOCTYPE ...> declaration, it will load the DTD and process the DTD declarations such that default attributes and general entities will be made available. General entities are only loaded and parsed if they are used (expanded).
If there is no <!DOCTYPE ...> declaration but there is an XSD "schemaLocation" attribute, it will load and process those XSD schemas and it will return any default attributes defined in those schemas.
If there is no <!DOCTYPE ...> declaration and no XSD "schemaLocation" attribute but there are some namespaces using the MSXML "x-schema:" URN prefix, it will load and process those schemas and it will return any default attributes defined in those schemas.
DTD
Validate according to DTD.
None
No validation.
Schema
Validate according to XDR and XSD schemas, including inline schemas. An error is returned if both XDR and XSD schemas are referenced from the same document.