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



TODO:

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?

 

SOLUTION:

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.

 

NOTES:

There are no notes for this topic.