Software engineering notes

playing with e4x in firefox: iteration using for-each loop

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 = <parent>
		<child name="julio"/>
		<child name="juan"/>
		<child name="jose"/>
for each (var child in xml.children.child) {

Written by Erik

May 21, 2009 at 7:16 pm

Posted in tutorial

Tagged with , ,

%d bloggers like this: