DOM GET XML ELEMENT VALUE

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 2004 (Modified)


DOM GET XML ELEMENT VALUE (elementRef; elementValue{; cDATA})

ParameterTypeDescription
elementRefStringXML element reference
elementValueVariableValue of the element
cDATAVariableContents of the CDATA section

Description

The DOM GET XML ELEMENT VALUE command returns, in the elementValue parameter, the value of the XML element designated by elementRef. 4D will attempt to convert the value obtained into the same type as that of the variable passed as parameter.

The optional cDATA parameter is used to retrieve the contents of the CDATA section(s) of the elementRef XML element. Like with the elementValue parameter, 4D will attempt to convert the value obtained into the same type as that of the variable passed as parameter.

Example

This method returns the value of the $xml_Element_Ref element:

   C_STRING(16;$xml_Element_Ref)
   C_REAL($value)

   DOM GET XML ELEMENT VALUE($xml_Element_Ref;$value)

See Also

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

System Variables or 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.


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