package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var oopBook:XML =
Design Patterns
Bates
1 1973
Inc
;
displayAuthor(oopBook.children());
}
public function displayAuthor (authors:XMLList):void {
for each (var author:XML in authors) {
trace( "Name: " + author.NAME
+ ", Birthdate: " + author.BIRTHDATE + "\n");
}
}
}
}