<cfif structKeyExists( XMLResponse.xmlRoot, "error" ) >

Taco Fleur - CEO
Pacific Fox http://www.pacificfox.com.au 
an industry leader with commercial IT experience since 1994 .

** Web Design and Development 
** SMS Solutions, including developer API
** Domain Registration, .COM for as low as AUSD$15 a year, .COM.AU for
AUSD$50 two years!
** Seamless Merchant integration
** We endorse PayPal, accept payments online now!


> -----Original Message-----
> From: Paul Giesenhagen [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, 5 November 2005 12:40 AM
> To: CF-Talk
> Subject: Re: XML Is or NOT?
> 
> 
> One of the nodes of the XML string is NOT there unless it is 
> an error ..
> 
> XMLResponse.thisPacket.error
> 
> If all is fine with the request the .error is not there ... 
> how do  I check 
> to see if .error element is defined ...
> 
> 
> Paul Giesenhagen
> QuillDesign
> 417-885-1375
> http://www.quilldesign.com
> 
> 
> ----- Original Message ----- 
> From: "Adrocknaphobia" <[EMAIL PROTECTED]>
> To: "CF-Talk" <cf-talk@houseoffusion.com>
> Sent: Friday, November 04, 2005 8:26 AM
> Subject: Re: XML Is or NOT?
> 
> 
> > Check the HTTP headers. It's somewhat common to throw a 500 
> response 
> > in the event of an error.
> >
> > -Adam
> >
> > On 11/4/05, Paul Giesenhagen <[EMAIL PROTECTED]> wrote:
> >> This may be a basic question, but I am recieving some XML and it 
> >> could be
> >> a valid response or it could be an error response... BOTH 
> are valid XML, 
> >> but they are formatted differently.
> >>
> >> I need to check to see if it is the error or not ...
> >>
> >> If I check for the error XML, and it is not, it errors out 
> saying it
> >> isn't valid XML... how do you check to see if it is a 
> particular XML 
> >> document and not error if it is not?
> >>
> >> Make sense?
> >> Paul Giesenhagen
> >> QuillDesign
> >> 417-885-1375
> >> http://www.quilldesign.com
> >>
> >>
> >>
> >>
> >>
> >>
> >
> > 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

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