length of childnodes
Posted: Sat Oct 25, 2008 11:18 am
Hi,
I am actually looking for a way to find the length of the first childNode . I tried the following code :
var len = xmlDoc.documentElement.childNodes[0].length;
alert(len);
I am getting an 'undefined' in the alert box.Does any one know the solution.
I am actually looking for a way to find the length of the first childNode . I tried the following code :
var len = xmlDoc.documentElement.childNodes[0].length;
alert(len);
I am getting an 'undefined' in the alert box.Does any one know the solution.