This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20 R7
DOM GET XML ELEMENT NAME

DOM GET XML ELEMENT NAME 


 

DOM GET XML ELEMENT NAME ( elementRef ; elementName ) 
Parameter Type   Description
elementRef  String in XML element reference
elementName  Variable in Name of the element

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:

 C_TEXT($xml_Element_Ref)
 C_TEXT($name)
 
 DOM GET XML ELEMENT NAME($xml_Element_Ref;$name)

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

 
PROPERTIES 

Product: 4D
Theme: XML DOM
Number: 730

The OK variable is changed by the commandThis command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Modified: 4D 2004

 
ARTICLE USAGE

4D Language Reference ( 4D v20 R7)