Link Search Menu Expand Document

XmlNamedNodeMap Iterate Operator

Explanation Eject nodes in continously.
The Iterate operator, unlike a normal operator, is used to continuously access the data contained in an object inside the execution engine. Objects with Iterate can perform the same operations as arrayed objects with for in loops and sum functions.
Call format The 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 map = xmldoc.DocumentElement.Attributes;
    for (var n in map) {
        print(map[n].NodeName, "\n");
    }
    
Related item XmlNode class