Xml to Array to htmlText

Hi there,

i’m having a problem with my htmlText :frowning:

I have a xml-file wich content I need to push into an array, and afterwards i need to make a selection and add that specific array-value to the htmlText of my textfield, but he doestn looks to it as html input

 
xmlContent = xmlRoot.childNodes[xmlTeller].firstChild;
--> 
MainArray[xmlTeller][2] = xmlContent;
-->
statusbar.htmlText = MainArray[arrTeller][2];

and the output is:

<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="12" COLOR="#000000">1 kglk<FONT COLOR="#00FF00">fdhgj</FONT>kb jhbg<I>kjhgbkjshfdg</I>kj</FONT></P></TEXTFORMAT>

He may not show this as a string, he must show this as html-content

Doesn anybody have a solution for my problem?

thnxs a lot!

The full code:

 
var xmlContent;
var myIdentifier;
var MainArray;
//
xmlContent = new XML();
xmlContent.ignoreWhite = true;
myIdentifier = Math.round(Math.random()*10000);
//
if (_root.id<>undefined) {
trace("TIS DEFINED");
_root.id2_txt.text = _root.id;
} else {
trace("TIS UNDEFINED");
_root.id = "1";
_root.id2_txt.text = _root.id;
}
//
xmlContent.onLoad = function() {
//
trace("loading xml");
xmlRoot = xmlContent.firstChild;
aantalNodes = xmlRoot.childNodes.length;
//trace("# "+xmlRoot);
MainArray = new Array(aantalNodes);
//
for (xmlTeller=0; xmlTeller<aantalNodes; xmlTeller++) {
//
xmlContent = xmlRoot.childNodes[xmlTeller].firstChild;
xmlItem = xmlRoot.childNodes[xmlTeller].firstChild.nodeValue;
xmlId = xmlRoot.childNodes[xmlTeller].attributes.menuID;
//
statusbar.html = true;
//statusbar.htmlText = xmlItem;
//
MainArray[xmlTeller] = new Array(4);
//
MainArray[xmlTeller][0] = xmlTeller;
MainArray[xmlTeller][1] = xmlId;
MainArray[xmlTeller][2] = xmlContent;
//
//trace(MainArray[xmlTeller][2])
}
//
for(arrTeller = 0; arrTeller < MainArray.length; arrTeller++ ){
//
if(MainArray[arrTeller][1] == _root.id){
statusbar.html = true;
statusbar.htmlText = MainArray[arrTeller][2];
 
}
//
}
 
};
xmlContent.load("contentList.xml");
//xmlContent.load("getContentList.asp?uniq="+myIdentifier);
//