4D v14.3DOM Get parent XML element |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
DOM Get parent XML element
|
DOM Get parent XML element ( elementRef {; parentElemName {; parentElemValue}} ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
elementRef | String |
![]() |
XML element reference | |||||
parentElemName | String |
![]() |
Name of parent XML element | |||||
parentElemValue | String |
![]() |
Value of parent XML element | |||||
Function result | String |
![]() |
Parent XML element reference (16 characters) | |||||
The DOM Get parent XML element command returns an XML reference to the “parent” of the XML element passed as reference in elementRef. This reference may be used with the other XML parsing commands.
The optional parentElemName and parentElemValue parameters, when passed, receive respectively the name and value of the parent element.
When you pass a root element in elementRef, the command returns the "#document" reference. The document node is the parent of a root element.
If you use this command on a document node, the command returns a null reference ("0000000000000000") and the OK variable is set to 0.
If the command has been executed correctly, the system variable OK is set to 1. Otherwise, it is set to 0.
Product: 4D
Theme: XML DOM
Number:
923
Created: 4D 2004.2
DOM Get first child XML element
DOM Get last child XML element
DOM Get Root 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)