> Since I am the mercy of the web service (they have not listened to 
> my inquiries w/regards to this) ...

You can't really expect them to change how their web service works to suit
you, can you? That might negatively affect all the people currently using
the web service.

If the problem is that you don't have a specific array element, and you
don't know about it until runtime, you will have to check to see if that
array element exists. If you're using CF 8, there's a new function
specifically for that, ArrayIsDefined:

http://livedocs.adobe.com/coldfusion/8/htmldocs/functions_a-b_12.html#517684
5

Otherwise, you'll need to simply try to reference the element, and catch the
exception that occurs when it's not there.

Since this specific array element is within an XML document, you might use
XML-specific functionality instead. For example, you could use XmlSearch
with the appropriate XPath expression to find matching nodes.

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!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293245
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to