No this is not something I can do ... I get what I get .. I just have to check to see if
XMLResponse.Package.ERROR is valid or not ... 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 10:33 AM Subject: RE: XML Is or NOT? >> -----Original Message----- >> From: Paul Giesenhagen [mailto:[EMAIL PROTECTED] >> Sent: Friday, November 04, 2005 9:09 AM >> To: CF-Talk >> 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? > > Personally if this at all standardized in your organization I'd create an > XSD for each of the scenarios ("error" or "data")... you can then > XMLValidate to validate the packet against the XSD's to determine what > kind > of XML you've got. > > 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:223213 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