For the first three, you need to specify what to return, in this case an attribute, the way you did with "@id" in the fourth example. In the fifth example you still need an index to point to, so to do a search you would need to do a loop:
I was hoping to return an XMLList, but it returns null.
Any reason for that?
I believe (and I may be wrong) that it would return a single item and there wasn't enough information to return anything. Someone with a deeper understanding of E4X might be able to come up with a better way to return a list.
Trace uses toString() which only returns text nodes, not the actual XML or text in attributes. Try
Flex SDK Developer
Adobe Systems Inc.