Skip to main content
Version: 21 R3

DOM Count XML elements

DOM Count XML elements ( elementRef : Text ; elementName : Text ) : Integer

ParameterTypeDescription
elementRefText→XML element reference
elementNameText→Name of XML elements to count
Function resultInteger←Number of elements
History
ReleaseChanges
16 R4Modified
2004Modified
<6Created

Description​

The DOM Count XML elements command returns the number of “child” elements dependent on the elementRef parent element and named elementName.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.

System variables and sets​

If the command has been correctly executed, the system variable OK is set to 1. If an error occurs, it is set to 0.

See also​

DOM Get XML element
XML SET OPTIONS

Properties​

Command number726
Thread safeyes
Modifies variablesOK