Link Search Menu Expand Document

XmlNodeList Iterate Operator

Explanation Eject nodes in succession.
The Iterate operator is unlike a normal operator, and is used to continuously access the data contained in an object inside the execution engine. Class objects with Iterate can perform the same operations as arrayed objects with for for in loops and sum functions.
Call format Iterate operator cannot be called directly.
Return value Iterate object
Arguments None
Exception None
Example of use
    var domimpl = new XmlDOMImplementation;
    var res = session.Get("/test/sample.xml");
    var xmldoc = domimpl.Load(res);
    var list = xmldoc.DocumentElement.ChildNodes;
    for (var n in list) {
        print(nodeList[n].nodeName, "\n");
    }
    
Related item XmlNode class