XMLElementList

Each element in an XML document can have an unlimited number of child elements. To process the element's child elements, you must store the child elements in a list. This is the purpose of the XMLElementList data type.

#define EngineVersion 5.0
#define RuntimeVersion 5.0

void XmlElementListDemo()
{
     XMLDocument document = XMLParseDocument("<root><child>Child #1</child><child>Child #2</child></root>");
     XMLElementList elements = XMLGetChildElements(XMLGetRootElement(document), "child");
     foreach (XMLElement element in elements)
     {
         WriteLine(XMLGetExpandedName(element) + "=" + XMLGetContent(element));
     }
}