Link Search Menu Expand Document

XmlNamedNodeMap.Item Method

Explanation Fetch the node by specifying the index.
Call format var node = map.Item( index )
Return value XmlNode object
If the corresponding node is not found, such as by specifying an index that is greater than or equal to the Length property , null is returned.
Arguments integer index Position of the node to retrieve ( by specifying an index starting from 0 )
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 = 0; n < map.Length; n++) {
        print(map.Item(n).NodeName, "\n");
    }
    
Related item XmlNode class
Length property