You would need to change your my_function to this:
Code:
function my_function() {
raft_mc.raft.html = true;
raft_mc.raft.htmlText
= my_xml.firstChild.childNodes[3].attributes.body_name;
}
RE: Styling XML
I misunderstood you. You don't want to style the XML, you want to style the output. The easiest way to do this would be to style the text area and/or component directly using the properties panel. It is also possible to attach a stylesheet to a textarea using the TextField class. I suggest you dig into the livedocs for some examples.
Bookmarks