4D v14.3DOM Get next sibling XML element |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
DOM Get next sibling XML element
|
DOM Get next sibling XML element ( elementRef {; siblingElemName {; siblingElemValue}} ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
elementRef | String |
![]() |
XML element reference | |||||
siblingElemName | String |
![]() |
Name of sibling XML element | |||||
siblingElemValue | String |
![]() |
Value of sibling XML element | |||||
Function result | String |
![]() |
Sibling XML element reference (16 characters) | |||||
The DOM Get next sibling XML element command returns a reference to the next “sibling” of the XML element passed as reference. This reference can be used with other XML parsing commands.
The siblingElemName and siblingElemValue parameters, if they are passed, receive respectively the name and the value of the “sibling” element.
This command is used to navigate among the “children” of the XML element.
After the last “sibling,” the system variable OK is set to 0.
Retrieval of the reference of the next sibling XML element following the element passed as parameter:
C_TEXT($xml_Parent_Ref;$next_XML_Ref)
$next_XML_Ref:=DOM Get next sibling XML element($xml_Parent_Ref)
Retrieval in a reference loop of all the child XML elements following the parent element passed as parameter, beginning with the first child:
C_TEXT($xml_Parent_Ref;$first_XML_Ref;$next_XML_Ref)
$first_XML_Ref:=DOM Get first child XML element($xml_Parent_Ref)
$next_XML_Ref:=$first_XML_Ref
While(OK=1)
$next_XML_Ref:=DOM Get next sibling XML element($next_XML_Ref)
End while
If the command has been correctly executed and if the parsed element is not the last “sibling” of the referenced element, the system variable OK is set to 1. If an error occurs or if the parsed element is the last “sibling” of the referenced element, it is set to 0.
Product: 4D
Theme: XML DOM
Number:
724
Modified: 4D 2004.2
DOM Get first child XML element
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)