Knew that. Thought xmlparse had something similar "baked" into it.
-----Original Message----- From: Ben Doom [mailto:[EMAIL PROTECTED] Sent: Friday, February 29, 2008 2:09 PM To: CF-Talk Subject: Re: Failing gracefully when using xmlParse()... You could use cfhttp to load the xml data into a variable, then parse the contents on a successful retrieval. --Ben Doom Che Vilnonis wrote: > How can I fail gracefully when using xmlParse and the feed is not > available/online? > > <cfset xmlFeed = > xmlParse("http://www.somedomainwithrssfeed.com/keyword.xml")> > > When using cfhttp, you could always use <cfif findNoCase("200", > cfhttp.statusCode)> to test for success. How is it done with xmlParse? > I'd rather not use a cftry/cfcatch block. > > Thanks, Che > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300219 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

