Ok, my problem is like so:
I am trying to deserialise xml files from the OpenTravel specification. www.opentravel.org.
Every time i try deserialise to a class, when i run the deserialise command of the xmlserializer, i get the problem:
Now a number of other posts on other forums had the solution of adding a namespace with no attributes to the document when serialising the class in the first place. That way it would deserialise just fine.Code:<OTA_HotelAvailRS xmlns='http://www.opentravel.org/OTA/2003/05'> was not expected.
I however, need to deserialise it with the namespaces in place.
I have tried removing the namespaces from the xml file before deserialising... but no luck.
Any brave coders?




Reply With Quote