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

**URL:** <https://forum.kirupa.com/t/how-to-load-all-xml-in-1-textfield-simple-you-try-it/195709>\
**Category:** flash\
**Created:** [August 2, 2006, 3:26pm UTC](https://forum.kirupa.com/t/how-to-load-all-xml-in-1-textfield-simple-you-try-it/195709 "2006-08-02T15:26:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thesainter](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@thesainter](https://forum.kirupa.com/u/thesainter)\
**Post date:** [August 2, 2006, 3:26pm UTC](https://forum.kirupa.com/t/how-to-load-all-xml-in-1-textfield-simple-you-try-it/195709/1 "2006-08-02T15:26:43Z")

</div>

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&lt;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:
