How to check that XMLList is empty in Flex

If I have an XMLList object in Flex, then what is the correct way to check if the list is empty? Should I just compare the result of myList.length() > 0 , myList.toString() != "" Or even try another method?

+4
source share
1 answer

I would go with a simple method myList.length() > 0 .

You can see an example of the length() function in the ECMAScript specification for XML (E4X) (p. 104), which Actionscript implements.

+9
source

All Articles