Using XMLList
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> public function displayIt():void { var admins:XMLList = myXML.children(); myTextArea.text = admins.toXMLString(); } </mx:Script> <mx:XML id="myXML"> <users> <administrators> <user id="1">A</user> <user id="2">B</user> </administrators> </users> </mx:XML> <mx:TextArea id="myTextArea" width="200" height="100" /> <mx:Button click="displayIt()" label="Try It" /> </mx:Application>