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.
length of childnodes
Moderator: General Moderators
Re: length of childnodes
Code: Select all
var len = xmlDoc.documentElement.childNodes[0].childNodes.length;Re: length of childnodes
Are you doing this in Javascript? Like, on the Client-Side?
Moving to Client-Side forum.
Moving to Client-Side forum.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.