Using XML in Flash CS3/AS3 - Output XML to Stage

As a follow up to learning the XML in AS3 from this Tutorial, http://www.kirupa.com/developer/flashcs3/using_xml_as3_pg1.htm, wanted to know how to create text boxes dynamically for each element to display on the stage. Want to add space to the y axis to drop one on top of the other, so they don’t just layer on top of each other.


for (var i:int = 0; i < authorList.length(); i++) { 
var authorElement:XML   = authorList*;         
trace(authorElement);
-- // instead of trace, create a text field to output the authorList        
-- // this doesn't work, but was my thought at how it might work.
        var myText:TextField = new TextField();
        myText.autoSize;
        myText.text = authorElement;
        addChild(myText);
  } 

Pointers or alternate suggestions appreciated.