package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var items:XML = <items> <item> <name>Apple</name> <color>red</color> </item> <item> <name>Orange</name> <color>orange</color> </item> </items>; trace( items.item[0].name ); trace( items.item[1].name ); } } }