XML Flash ActionScript

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var items:XML = 
                          
                            Apple
                            red
                          

                          
                            Orange
                            orange
                          

                        
;
                        
        
        trace( items.item[0].name );
        
        trace( items.item[1].name );
    }
  }
}