package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var staff:XML =
M
J
25000
Designer
J
D
55000
Manager
var allEmployees:XMLList = staff.*;
var employeesUnderJames:XMLList = allEmployees.(MANAGER == "James Porter");
trace(employeesUnderJames);
}
}
}