> I am attempting to pull the XML from Amazon in, but I am 
> having a problem with the image portion. There are some 
> products that do not have images defined. I have attempted to use 
> 
> <cfif 
> IsDefined('myAmazonResults.ItemSearchResponse.Items.Item[i].Im
> ageSets.ImageSet.Tinyimage.url.xmlText')>  ...

You can't use IsDefined to test for the existence of an array member. The
array itself is the variable, not the member. I think this may have changed
in CF8, but honestly I'm not sure.

In any case, you can use exception handling (CFTRY/CFCATCH) to deal with
this problem.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290092
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