There is an error in the document xmlns= was not expected


Have you ever received the message "There is an error in the document (1,2) <MyElement xmlns=''> was not expected." when deserializing an XML string?



After much headache, it turned out that the person was sending me xml that had the proper tags, but had the incorrect case.  XML is case sensitive, so be sure to check that first, especially if it was working before.



There are no notes for this topic.