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.




Paul Giesenhagen
QuillDesign
417-885-1375
http://www.quilldesign.com


----- Original Message ----- 
From: "Paul Giesenhagen" <[EMAIL PROTECTED]>
To: "CF-Talk" <cf-talk@houseoffusion.com>
Sent: Friday, November 04, 2005 8:09 AM
Subject: XML Is or NOT?


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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:223241
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