UseInlineSchema Property
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.
This property is supported in MSXML 6.0, and the default value is false.
This property has security implications. For more information, see MSXML Security Overview and DOM Security.
The second-level properties ValidateOnParse, ResolveExternals and UseInlineSchema 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 ResolveExternals = true UseInlineSchema = true |
Validates against a schema resolved from a schema-cache, an inline schema, or schemaLocation attributes. |
|
ValidateOnParse = true ResolveExternals = true UseInlineSchema = false |
Validates the document against a schema resolved from a schema-cache or the schemaLocation attributes. An inline schema is ignored. |
|
ValidateOnParse = true ResolveExternals = false UseInlineSchema = 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 ResolveExternals = false UseInlineSchema = false |
Validates the document against a schema resolved from a schema-cache. An inline schema and the schemaLocation attributes are ignored. This is the default behavior for MSXML 6.0. |
|
ValidateOnParse = false ResolveExternals = true UseInlineSchema = true |
Process ID/IDREF/datatype using schema resolved from schema-cache, inline schema or the schemaLocation attributes. |
|
ValidateOnParse = false ResolveExternals = true UseInlineSchema = false |
Process ID/IDREF/datatype using schema resolved from schema-cache or the schemaLocation attributes. Inline schema is ignored. |
|
ValidateOnParse = false ResolveExternals = false UseInlineSchema = true |
Process ID/IDREF/datatype using schema resolved from schema-cache or inline schema. The schemaLocation attributes are ignored. |
|
ValidateOnParse = false ResolveExternals = false UseInlineSchema = false |
Process ID/IDREF/datatype using schema resolved from schema-cache. Inline schema and the schemaLocation attributes are ignored. |
|
ValidateOnParse = false ResolveExternals = true or false UseInlineSchema = true or false |
Schema validation is not performed and ID/IDREF/dataype are not resolved. |