Data Model Flex


    
        
        private var xmlItems:XML = 
                            
                                A
                                3.9
                            
                            
                                B
                                1.5
                            
                        

    
        private function init():void {
              xmlLabel.text = xmlItems.item.(@id == "2").menuName;
        }