Software engineering notes

playing with e4x in firefox: accessing xml objects using dot and bracket notation

prereq: firefox w/ firebug installed
1) put this in an html file and run it in firefox:
2) look for the output in the firebug console
var h = 'html';
var text = "Here's some text";
var doc = <{h}><body>{text}</body></{h}>;

Written by Erik

May 21, 2009 at 7:08 pm

Posted in tutorial

Tagged with , ,

%d bloggers like this: