This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
DOM Count XML elements
|
DOM Count XML elements ( elementRef ; elementName ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
elementRef | String |
![]() |
XML element reference | |||||
elementName | String |
![]() |
Name of XML elements to count | |||||
Function result | Longint |
![]() |
Number of elements | |||||
The DOM Count XML elements command returns the number of “child” elements dependent on the elementRef parent element and named elementName.
Note: By default, DOM Count XML elements is case sensitive regarding the elementName parameter (xml compliance). You can control the case sensitivity of the command using the XML DOM case sensitivity selector of the XML SET OPTIONS command.
If the command has been correctly executed, the system variable OK is set to 1. If an error occurs, it is set to 0.
Product: 4D
Theme: XML DOM
Number:
726
Modified: 4D 2004
Modified: 4D v16 R4
4D Language Reference ( 4D v20 R7)