XML.hasChildNodes
The following example uses the information from the XML object in a user-defined This method returns true if the specified XML object has child nodes otherwise, returns false.
http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary839.html