Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - DOM Reference

validate Method (IXMLDOMSchemaCollection2/XMLDOMSchemaCollection)

Performs run-time validation on the documents in the schema cache that have not been compiled and validated. If a schema has its validateOnLoad property set to true when it is loaded into the cache, the schema will be compiled and validated at that time. The validate method is used when validateOnLoad is set to false. Steps 2 and 3 are postponed until the validate method is called.

The Schema compilation steps are:

  1. Check Syntax and resolve names.
  2. Load and preprocess external schemas.
  3. Compile schema items respecting W3Cs rules.
[Script]

Script Syntax

objXMLSchemaCache.validate();

Return Value

None.

[Visual Basic]

Visual Basic Syntax

objXMLSchemaCache.validate

Return Value

None.

[C/C++]

C/C++ Syntax

HRESULT validate();

C/C++ Return Values

None.

See Also

validateOnLoad Property

Applies to: IXMLDOMSchemaCollection2/XMLDOMSchemaCollection