How to load all xml in 1 textfield. simple? You try it?

This may sound easy but I just can’t figure it out. I want to load all the xml i have into 1 texfield. but still be able to adjust color to certain nodes loaded from the xml in the text field. I know this can be done by css.

but i just can’t get it to work properly:

i could load eveverything but then the lines don’t break. it needs to look the way it shows in the output screen.

this what I have so far. I filled in some bogus code after the path to the textfield to make clear what i’m trying to do here.

var my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(success){

if (success){

xmlNode = this.firstChild;
    
    total = xmlNode.childNodes.length;
    vac_titel = [];
    vac_desc = [];

for (i=0; i<total; i++) {
        vac_titel* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
        trace(vac_titel*);
        vac_desc* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
        trace(vac_desc*);
    
    _root.textveld.text =  vac_titel* + vac_desc*;
    
    }

}

}

my_xml.load(“myxml.xml”);

thanx in advance :puzzled: