# Simple Flash MX XML question!

**URL:** <https://forum.kirupa.com/t/simple-flash-mx-xml-question/237075>\
**Category:** Uncategorized\
**Created:** [August 27, 2007, 3:12am UTC](https://forum.kirupa.com/t/simple-flash-mx-xml-question/237075 "2007-08-27T03:12:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sroberts209](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sroberts209](https://forum.kirupa.com/u/sroberts209)\
**Post date:** [August 27, 2007, 3:12am UTC](https://forum.kirupa.com/t/simple-flash-mx-xml-question/237075/1 "2007-08-27T03:12:35Z")

</div>

Hi there! I just did the Kirupa XML tutorial (for Flash MX) and … I actually understand!

But now I need to change a few things… and I haven’t got a clue.

Right now, I know how to import text from an XML file into different text boxes. But, what I need to do, is be able to import text regardless of how many text boxes my FLA file has.

headline, news  
headline, news  
headline, news etc etc etc

I am assuming that I would just make ONE text box and all this would go in it. But then how do I “style” the headlines and news diffeently?

Here the code I DO understand:

function loadXML(loaded) {  
if (loaded) {  
\_root.inventor = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;  
\_root.comments = this.firstChild.childNodes[1].childNodes[0].firstChild.nodeValue;  
name\_txt.text = \_root.inventor;  
comment\_txt.text = \_root.comments;  
} else {  
trace(“file not loaded!”);  
}  
}  
xmlData = new XML();  
xmlData.ignoreWhite = true;  
xmlData.onLoad = loadXML;  
xmlData.load(“inventors.xml”);
