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
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
2 matches
Mail list logo