Simple Flash MX XML question!

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”);