Accesing ChildNode resets index
Hi,
Im having some trouble with XML part of my application.
I grab a bunch of nodes by unsing:
list = xmlDoc.getElementsByTagName("KEYWORD")
Then I check its length with alert(list.length) = 7500
So I loop through the nodes..
for (var i=0;i < list.length;i++)
{
var word = list[i].childNodes[0].nodeValue
}
i only gets to 295, but if I remove the childNodes statement it gets to 7500?????
Thanks for any help
Dan
|