Skip to main content
Version: Next

DOM GET XML ELEMENT NAME

DOM GET XML ELEMENT NAME ( elementRef ; elementName )

ParameterTypeDescription
elementRefTextXML element reference
elementNameVariableName of the element

Description

The DOM GET XML ELEMENT NAME command returns, in the elementName parameter, the name of the XML element designated by elementRef. If the elementName variable type is not defined, the text type is used by default.

For more information on XML element names, refer to the Overview of XML DOM Commands section.

Example

This method returns the name of the $xml_Element_Ref element:

 var $xml_Element_Ref : Text
 var $name : Text
 
 DOM GET XML ELEMENT NAME($xml_Element_Ref;$name)

System variables and sets

If the command has been correctly executed, the system variable OK is set to 1. If an error occurs, it is set to 0.

See also

DOM Get XML element
DOM GET XML ELEMENT VALUE
DOM SET XML ELEMENT NAME