DOM Get previous sibling XML element

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 2004.2


DOM Get previous sibling XML element (elementRef{; siblingElemName{; siblingElemValue}}) String

ParameterTypeDescription
elementRefStringXML element reference
siblingElemNameStringName of sibling XML element
siblingElemValueStringValue of sibling XML element
Function resultStringSibling XML element reference (16 characters)

Description

The DOM Get previous sibling XML element command returns a reference to the previous "sibling" of the XML element passed as reference. This reference may be used with the other XML parsing commands.

The optional siblingElemName and siblingElemValue parameters, when passed, receive respectively the name and value of the previous "sibling" element.

This command can be used to navigate among the "children" of an XML element.

Before the first "sibling," the system variable OK is set to 0.

See Also

DOM Get next sibling XML element.

System Variables or Sets

If the command has been executed correctly and if the referenced element is not the first "child" of the structure, the system variable OK is set to 1. If an error occurs or if the element parsed is the first "child" of the structure, it is set to 0.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next