Aracılığıyla paylaş


XmlLoadSettings.ResolveExternals Property

Definition

Gets or sets a value that specifies whether external definitions, resolvable namespaces, external subsets of document type definitions (DTDs), and external entity references are to be resolved at the time the document is parsed.

public:
 property bool ResolveExternals { bool get(); void set(bool value); };
bool ResolveExternals();

void ResolveExternals(bool value);
public bool ResolveExternals { get; set; }
var boolean = xmlLoadSettings.resolveExternals;
xmlLoadSettings.resolveExternals = boolean;
Public Property ResolveExternals As Boolean

Property Value

Boolean

bool

True if external definitions, resolvable namespaces, external subsets of DTDs, and external entity references are resolved at the time the document is parsed; otherwise false. The default value is false.

Remarks

When this property 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 ResolveExternals is false, externals are not resolved and validation is not performed.

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

Applies to