XML Parsing Help

Hi,

I’ve bee reading Through Senocular’s tutorial on XML/FLASH. I’ve attempted the following but have hit a snag. I have all the message parent, but am lost how to extract the individual children:
var to=
var from =
var body=
So I can assign each to a text field. Hear is what I done so far:


var message_xml:XML = new XML();
message_xml.ignoreWhite = true;
message_xml.onLoad = function(success) {
	if (!success) {
		trace("Document Failed To Load");
		return;
	}
	// Error check - file okay?                     
	if (this.status != 0) {
		trace("The XML file was loaded, but was not well formed");
		return;
	}
	// Error check - xml data okay?                     
	if (this.firstChild.nodeName.toLowerCase() != "message") {
		trace("Unexpected XML data: "+this.firstChild.nodeName);
		return;
	}
	//extract message to an array                    
	var message_arr = this.firstChild.childNodes;
	for (var i = 0; i<message_arr.length; i++) {
		var message = message_arr*.childNodes;
		trace(message);
	}
	var to = message_arr*.firstChild;
	for (var i = 0; i<message_arr*.firstChild; i++) {
		trace(to);
	}
};
message_xml.load("message.xml");


<?xml version="1.0" encoding="ISO-8859-1"?>
<message>
	<to>Disco Stu</to>
	<from>Marge Simpson</from>
	<body><![CDATA[Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla.]]></body>
</message>