XML Flash ActionScript

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var example:XML = 
                            Apple
                            Broccoli
                            Milk
                          
;
                          
        delete example.fruit.@color;
        
        delete example.dairy;
        
        delete example.vegetable.text(  )[0];
        
        trace( example );
    }
  }
}