I am trying to deserialize a xml string in C# using the following
XmlSerializer serializer = new XmlSerializer(typeof(Application));
App = (Application)serializer.Deserialize(xmlString);
It all works well when the xml is pretty printed, but when i have the whole xml in a single line deserializing fails with the error
There is an error in XML document (1, 2). Name cannot begin with the '.' character, hexadecimal value 0x00. Line 1, position 2."
I've checked that the xml is valid as such.
Any one knows what can be done to overcome this problem?