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

Reply via email to