Specifies whether inline schemas should be processed (true) or not (false). When this property is set to true, inline schemas are used for validation. When this property is set to false, inline schemas are treated like any other XML fragments.
domObj.setProperty(strProp, vBool); vBool = domObj.getProperty(strProp);
domObj.setProperty(strProp, vBool) vBool = domObj.getProperty(strProp)
HRESULT setProperty(BSTR strProp, VARIANT vBool); HRESULT getProperty(BSTR strProp, VARIANT* vBool);
true or false. The default value is true.The second-level properties ValidateOnParse, ResolveExternals, UseInlineSchema, and NonValidatingSchemaUse all involve the validation of an XML document. Collectively, they influence the behavior of the parser in the following way.
| Validate Property Settings | Behavior of the parser |
|---|---|
ValidateOnParse = true |
Validates against a schema resolved from a schema-cache, an inline schema, or schemaLocation attributes.
This is the default behavior. |
ValidateOnParse = true |
Validates the document against a schema resolved from a schema-cache or the schemaLocation attributes. An inline schema is ignored. |
ValidateOnParse = true |
Validates the document against a schema resolved from a schema-cache or an inline schema. The schemaLocation attributes are ignored in resolving the schema. |
ValidateOnParse = true |
Validates the document against a schema resolved from a schema-cache. An inline schema and the schemaLocation attributes are ignored. |
ValidateOnParse = false |
Process ID/IDREF/datatype using schema resolved from schema-cache, inline schema or the schemaLocation attributes. |
ValidateOnParse = false |
Process ID/IDREF/datatype using schema resolved from schema-cache or the schemaLocation attributes. Inline schema is ignored. |
ValidateOnParse = false |
Process ID/IDREF/datatype using schema resolved from schema-cache or inline schema. The schemaLocation attributes are ignored. |
ValidateOnParse = false |
Process ID/IDREF/datatype using schema resolved from schema-cache. Inline schema and the schemaLocation attributes are ignored. |
ValidateOnParse = false |
Schema validation is not performed and ID/IDREF/dataype are not resolved. |
Component: MSXML 5.0 and later
Interface: IXMLDOMDocument2
Method: setProperty | getProperty
Using Inline Schemas (XSD) | ResolveExternals | ValidateOnParse