%XML_ELEMLIST_COUNT

Count the elements in an XML element list

WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX
VSupported on OpenVMS
count = %XML_ELEMLIST_COUNT(elem_list)

Return value

count

The number of elements in the list. (i4)

Arguments

elem_list

The XML element list instance. (XML_ELEMLIST_TYPE)

Discussion

%XML_ELEMLIST_COUNT returns the number of elements in the XML list. This function can be used in combination with %XML_ELEMLIST_ITEM to iterate through the element list using a Synergy FOR loop.

This function is defined as ^VAL.

Examples

for i from 1 thru %xml_elemlist_count(children)

For a complete example, see Example of parsing XML.