Ah, Leigh may be on to it:

If the XML is blank or even if just the 'country' element is empty, than 0 is 
still 0, but 0 can't be determined, since 'cities' wouldn't even exist in the 
arrayLen(stcXml.country.cities.xmlChildren) test is 'country' is empty.  That 
would be why your new first test (<cfif StructKeyExists(stcXML.country, 
"cities")> ) is the key ... 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327528
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to