package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var fruits:XML =
Apple
Orange
Pear
Watermelon
;
trace( fruits.fruit.(name == "Apple").@color );
}
}
}