%XML_ELEMLIST_ITEM

Find an element in an XML element list by position

WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX
VSupported on OpenVMS
element = %XML_ELEMLIST_ITEM(elem_list, index)

Return value

element

The XML element instance found, or 0 if not successful. (XML_ELEM_TYPE)

Arguments

elem_list

The XML element list instance. (XML_ELEMLIST_TYPE)

index

The index position of the element in the list. (n)

Discussion

%XML_ELEMLIST_ITEM looks for an XML element by its index position. You can alternatively retrieve an element by its name using %XML_ELEMLIST_FIND or by its tag using %XML_ELEMLIST_FINDTAG.

This function is defined as ^VAL.

Examples

elem = %xml_elemlist_item(children, i)

For a complete example, see Example of parsing XML.