as3 convert text document to text.xml for flash actionscript 3