NodeCollection

length

Type: Property (read only)
Return: int
Description: Get the number of nodes in this collection

var nodes = xml.getNodesByName("foo");

for (var i = 0; i < nodes.length; i++)
    alert(nodes[i].nodeValue);

Last edited Feb 4, 2014 at 1:50 PM by oobenoob, version 2