package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
// To examine every element node with a particular node name, use a for each loop
var items:XML =
Apple
red
Orange
orange
;
for each ( var name:XML in items..name ) {
trace( name );
}
}
}
}