DOM Get Root XML element

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 11.3


DOM Get Root XML element (elementRef) String

ParameterTypeDescription
elementRefStringXML element reference
Function resultStringReference of root element (16 characters)
or "" in case of error

Description

The DOM Get Root XML element command returns a reference to the root element of the document to which the XML element that is passed in the elementRef parameter belongs. This reference can be used with the other XML parsing commands.

See Also

DOM Get parent XML element.

System Variables or Sets

If the command has been executed correctly, the OK system variable is set to 1. If an error occurs, for example if the element reference is invalid, the OK variable is set to 0 and the command generates an error. In this case, the command returns an empty string.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next