DOMDocument.CreateNSResolver

Syntax variant: On the basis of DOM document

Syntax:

CreateNSResolver()

Description of method variant:

Allowance is given for all namespaces defined in the document. If namespace prefixes match, the earliest defined namespace is used.

Syntax variant: On the basis of DOM node

Syntax:

CreateNSResolver(<ContextNode>)

Parameters:

<ContextNode> (required)

Type: DOMDocument.
DOM document node to be used as context for allowing namespaces.

Description of method variant:

Namespaces are allowed in the context of this node, i.e. namespaces of this node and its parent nodes are used for allowance.

Syntax variant: On the basis of a Map

Syntax:

CreateNSResolver(<Map>)

Parameters:

<Map> (required)

Type: Map.
Map key is the namespace prefix, and the value is namespace URI.

Description of method variant:

Creates an adapter for allowing namespaces on the basis of Map.

Syntax variant: On the basis of specific prefix and namespace URI

Syntax:

CreateNSResolver(<Prefix>, <NamespaceURI>)

Parameters:

<Prefix> (required)

Type: String.
Prefix.

<NamespaceURI> (required)

Type: String.
Namespace URI.

Returned value:

Type: DOMNamespaceResolver.

Description:

Creates an adapter for allowing namespaces.

Availability:

Server, thick client, external connection, Mobile application (server).

    

1C:Enterprise Developer's Community