Binding my XML file to Flash Using AS3


I’ve researched a lot of examples on how to do this and I’m almost there. I actually got it to show up in the dynamic text box, but its also displaying my [COLOR=#ff0000]xml[/COLOR] and css tags(The [COLOR=#ff0000]XML[/COLOR] file structure). I know the [COLOR=#ff0000]xml[/COLOR] and css files both work after testing them in my browser. Can you please assist me with fine-tuning this AS3 code. My [COLOR=#ff0000]XML[/COLOR] file only has one node. Below is my AS3 code:

var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onLoadXML);
loader.load(new URLRequest("content.xml"));
function onLoadXML(e:Event):void
 var **[COLOR=#ff0000]xml[/COLOR]**:XML = new **[COLOR=#ff0000]XML[/COLOR]**(;
 textBox.text =

I just need it to read the content and follow the css code that’s been attached to it.