DOMDocument.GetElementByTagName

Syntax variant: By name

Syntax:

GetElementByTagName(<Name>)

Parameters:

<Name> (required)

Type: String.
Names of selected elements. A predefined wildcard (asterisk) can be used, indicating the necessity to select all Element nodes in the document tree.

Syntax variant: By local name and namespace URI

Syntax:

GetElementByTagName(<NamespaceURI>, <LocalName>)

Parameters:

<NamespaceURI> (required)

Type: String.
Namespace URI. Use of asterisk wildcard is allowed, indicating the necessity to select Element nodes of the document tree with an arbitrary namespace URI.

<LocalName> (required)

Type: String.
Element's local name (or name mask). Use of asterisk wildcard is allowed, indicating the necessity to select Element nodes of the document tree with an arbitrary local name.

Returned value:

Type: DOMElementList.
DOM nodes (elements) list in the order of occurence in the document.

Description:

Gets all elements with name indicated.

Availability:

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

    

1C:Enterprise Developer's Community