playing with e4x in firefox: iteration with a for loop


/*
ref: https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Processing_XML_with_E4X
ref: http://bit.ly/y8udj
prereq: firefox w/ firebug installed
1) put this code in an html file
2) run it in firefox
3) look for output in console
*/
var xml = 
	
		
		
		
	
;
for (var i = 0; i < xml.children.child.length(); i++) {//note: 'parent' is not the root var name
    console.log(xml.children.child[i].@name);
}