Microsoft XML 2.5 SDK


 

IXMLDOMDocument::put_resolveExternals Method

[This is preliminary documentation and subject to change.]

Indicates that external definitions (resolvable namespaces, DTD external subsets, and external entity references) are to be resolved at parse time.

Visual Basic Syntax

objXMLDOMDocument.resolveExternals = boolValue

C/C++ Syntax

HRESULT put_resolveExternals(

    VARIANT_BOOL isResolving);

Parameters

isResolving

[in]
True if external definitions are to be resolved at parse time, or false otherwise. The default is true.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

When isResolving is true, external definitions are resolved at parse time. This allows default attributes and data types to be defined on elements from the schema and allows use of the DTD as a file inclusion mechanism.

This setting is independent of whether validation is to be performed, as indicated by the value of the validateOnParse property. If externals cannot be resolved during validation, a validation error occurs. When the value of isResolving is false, externals are not resolved and validation is not performed.

A resolvable namespace is indicated by a namespace URI that begins with "x-schema:" as its prefix.