[Flashcoders] xml and e4x searching question

2009-02-19 Thread Ferd Berfel
hello, newbie here... I'm trying to understand searching xml with e4x why does this work: var staff:XML = STAFF EMPLOYEE ID=501 HIRED= 109072800 NAMEMarco Crawley/NAME MANAGERJames Crawley/MANAGER POSITIONDesigner/POSITION

Re: [Flashcoders] xml and e4x searching question

2009-02-19 Thread Taka Kojima
When you trace out: trace(staff.*.(POSITION == Designer)); You will see that it returns the parent EMPLOYEE element... So, even if your code were to work, all it would do would be to return the root STAFF node, which probably wouldn't help you. If you compare the two examples, you will see that