Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xml Deserialize

Status
Not open for further replies.

mander23

MIS
Jan 30, 2005
28
US
I have a class file that is filled and then serialized to xml and sent to a server. I get my response back and then need to Deserialize it. The problem is that I can get back one of two messages. Either an xml_Error message or the other message which means everything is a success. How can I tell which message I get back before I try to Deserialize back into my class. Thank you.
 
You can't that I know of. You must get the XML into a format that can be parsed through to read its contents.
 
do you have an XSD of the response, it will be an issue if the two messages you receive are a different structure, if so, you have have to write a custom de-serialization.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top