<cfif IsDefined(XMLResponse.RateV2Response.Package.Error)> Same error
Element RATEV2RESPONSE.PACKAGE.ERROR is undefined in XMLRESPONSE Paul Giesenhagen QuillDesign 417-885-1375 http://www.quilldesign.com ----- Original Message ----- From: "Jim Davis" <[EMAIL PROTECTED]> To: "CF-Talk" <cf-talk@houseoffusion.com> Sent: Friday, November 04, 2005 2:05 PM Subject: RE: XML Is or NOT? >> -----Original Message----- >> From: Paul Giesenhagen [mailto:[EMAIL PROTECTED] >> Sent: Friday, November 04, 2005 2:48 PM >> To: CF-Talk >> Subject: Re: XML Is or NOT? >> >> I tried: >> <cfif IsDefined("#XMLResponse.RateV2Response.Package.Error#")> >> >> And recieved this error: >> >> Element RATEV2RESPONSE.PACKAGE.ERROR is undefined in XMLRESPONSE. > > > Don't use the pound signs in "IsDefined" - this is looking for the VALUE > of > that node to be checked for existence, not the node itself. > > In other words: > > <cfset foo = "faa" /> > > <!--- This checks to see if the variable "foo" exists ---> > <cfif IsDefined("foo")> > > <!--- This checks to see if the variable "faa" exists ---> > <cfif IsDefined("#foo#")> > > Jim Davis > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223269 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54