다음을 통해 공유


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.

Script Syntax

domObj.setProperty(strProp, vBool);  
vBool = domObj.getProperty(strProp);  

Visual Basic

domObj.setProperty
(strProp, vBool)  
vBool = domObj.getProperty
(strProp)  

C\C++ Syntax

HRESULT setProperty(BSTR strProp, VARIANT vBool);  
HRESULT getProperty(BSTR strProp, VARIANT* vBool);  

Parameters

strProp
A BSTR string whose value is "UseInlineSchema".

vBool
A VARIANT_BOOL value of true or false.

Remarks

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.

Versioning

This property is supported in MSXML 6.0. The default value is false.

Applies to

Interface: IXMLDOMDocument2

Methods: setProperty | getProperty

See Also

Using Inline Schemas (XSD)
ResolveExternals Property
ValidateOnParse Property