> -----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



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223261
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

Reply via email to