Im trying to deserialize an XML file with XmlSerializer, however im getting this exception:
"There is an error in XML document (1, 2)" The innerexception is: "
<Mymessage xmlns='http://MyMessages/'>
was not expected."
Which is the very first line in the XML file. my guess is that it has something to do with the xmlns.
I tried to ask Google, and then tried to add the following line to my code
[XmlRoot("MyMessage", Namespace="'http://MyMessages/")]
But I still get the same exception.