4D v14.3

DOM Get previous sibling XML element

Home

 
4D v14.3
DOM Get previous sibling XML element

DOM Get previous sibling XML element 


 

DOM Get previous sibling XML element ( elementRef {; siblingElemName {; siblingElemValue}} ) -> Function result 
Parameter Type   Description
elementRef  String in XML element reference
siblingElemName  String in Name of sibling XML element
siblingElemValue  String in Value of sibling XML element
Function result  String in Sibling XML element reference (16 characters)

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.

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.

 
PROPERTIES 

Product: 4D
Theme: XML DOM
Number: 924

The OK variable is changed by the command

 
HISTORY 

Created: 4D 2004.2

 
SEE ALSO 

DOM Get next sibling XML element

 
ARTICLE USAGE

4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)