%XML_ELEMLIST_ITEM

Find an element in an XML element list by position

WSupported on Windows
USupported on Unix
VSupported on OpenVMS
NSupported in Synergy .NET
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.