[MX 2004 Pro] HTML formatted Text Area

I’m trying to load html-formatted text in from a file to put in a text area (which is set to render text as html text). The htmlFile instance is of XML type and it reads in the file correctly (I traced it) but when I assign it to the text area it reads as plain text instead of html-text. I use this code on loading event:

htmlFile.onLoad = function(success)
   {
   		_root.txtArea.text=htmlFile;
   		_root.txtArea.html=true;
   }

the text field reads a file like this:

this is an <b>html</b> file

and displays:
“this is an <b>html</b> file”
instead of:
“this is an html file”

What am I doing wrong?