public class Main extends Sprite{ public function Main(){
var dialog:String = "Lorem ipsum dolor sit amet";
var XMLString:String = "<dialog>" + dialog + "</dialog>";
var xml:XML = XML(XMLString);
trace(xml.text()); // Displays: Lorem ipsum dolor sit amet