For loops, arrays and TextFields

I am loading a news section via XML and want to dynamically create TextFields for the headlines and main body text depending on the amount of news items.

public function buildTexts(){
            
            var headLines:Array = new Array ();
            var mainText:Array = new Array ();
            
            for each (var i:String in _xml.item.(@folder == "news").item.@headline) {
                headLines.push (i);
            }
            for each (var j:String in _xml.item.(@folder == "news").item.@text) {
                mainText.push (j);
            }

            var num:int =  _xml.item.(@folder == "news").item.length();            
            for (var k:int = 0; k < num; k++) {
                var textHeadlineString:String = "textHeadline"+[k];
               
                textHeadlineString.defaultTextFormat=headLineFormat;  
                textHeadlineString.text=headLines[k];

                var textMainTextString:String = "textMainText"+[k];
               
                textMainTextString.defaultTextFormat=mainTextFormat;  
                textMainTextString.text=mainText[k];           
            }

I know this is wrong but I just thought I’d show where I was at.
How do I dynamically create the TextFields?
Thanks
dai2