We have this enumerated type:
Public Enum RespCode
Info
Warn
[Error]
End Enum
This works great with most of the XML messages we get from our host, the problem is, sometimes we get a message with a RespCode of "ERROR" the serializer blows up because, obviously, that value isn't part of the enumerated type.
Any way we can get the deserializer to ignore the case on elements being stuffed into this enumarted type?
I could easily just replace this with a string value and let it ride, but we use this enumerated type is a TON of other code and can't afford a giant re-write at this point...
Please help...
ASP, VB, VBS, Cold Fusion, SQL, DTS, T-SQL, PL-SQL, IBM-MQ, Crystal Reports, Crystal Enterprise
Public Enum RespCode
Info
Warn
[Error]
End Enum
This works great with most of the XML messages we get from our host, the problem is, sometimes we get a message with a RespCode of "ERROR" the serializer blows up because, obviously, that value isn't part of the enumerated type.
Any way we can get the deserializer to ignore the case on elements being stuffed into this enumarted type?
I could easily just replace this with a string value and let it ride, but we use this enumerated type is a TON of other code and can't afford a giant re-write at this point...
Please help...
ASP, VB, VBS, Cold Fusion, SQL, DTS, T-SQL, PL-SQL, IBM-MQ, Crystal Reports, Crystal Enterprise