How to obtain length of XML childnodes

yonking

New Member
My question is pretty simple. All I want to do is get how many employee tags are inside of the employees tag. My XML looks like this...\[code\]<employees> <employee> <name></name> <city></city> </employee> <employee> . . .</employees>\[/code\]I've been using this javascript to try to the length but it keeps coming up zero...\[code\]items=request.responseXML.getElementsByTagName("employees")[0].childNodes;alert(items.length);\[/code\]
 
Back
Top