Link Search Menu Expand Document

XmlNodeList[ ] Operator

Explanation Extract the nodes in array format.
Call format list[ index ]
Return value XmlNode object
Return null if index is not in the valid range
Arguments integer index Position to retrieve the node
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 = 0; n < list.Length; n++) {
        print(list[n].NodeName, "\n");
    }
    
Related item XmlNode class
Item method