reference:plugins:plugin_sdk:xml_functions:xmlenumchildnodes

XMLEnumChildNodes(
     HANDLE:hNodeHandle,
     LPTSTR:pszName,
     HANDLE:hPrev
)
→ HANDLE

Arguments

hNodeHandle

[in] The handle to the parent node.

pszName

[in] The name of the nodes to enumerate.

hPrev

[in] Previous node returned by this function, or NULL on first call.

Return value

Returns a handle to the next child node with the specified name, or NULL if no more child nodes with that name are found.

Description

The XMLEnumChildNodes function is used to enumerate all child nodes with a specific name.

Example code showing how to enumerate all child nodes named "instruction":

HANDLE hParentNode;
HANDLE hChild;
 
hChild = NULL;
 
while (( hChild = XMLEnumChildNodes( hParentNode, "instruction", hChild)) != NULL )
{
    .. // process child node
};

Note that the name match is not case sensitive.