> -----Original Message----- > From: Paul Giesenhagen [mailto:[EMAIL PROTECTED] > Sent: Friday, November 04, 2005 1:22 PM > To: CF-Talk > Subject: Re: XML Is or NOT? > > Ok, let me ask this a different way: > > If, I do this: > <cfif IsXMLElem(XMLResponse.RateV2Response.Package.Error)> > Some code > <cfelse> > More code > </cfif> > > AND there is no ERROR node/element, then CF produces this error: > --- > Element RATEV2RESPONSE.PACKAGE.ERROR is undefined in XMLRESPONSE > --- > > Basically I am wanting to see if package.ERROR is there ... if it is not, > then process normally.. > > The IsXMLElem fuction doesn't catch this.
I think there's a note about this in the docs... try using "IsDefined()" first, then IsXMLElem (which assumes you're giving it something to check - not something or nothing). Essentially a CF XML doc is just a struct - you can use struct functions and the like as well. 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:223244 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

