I\'m using DatacontractSerializer
to serialize my domainModel into a xml file.
I\'m getting output like below.
Using an empty namespace seems to remove the prefix. Setup your class with the following DataContract attribute:
[DataContract(Namespace="")]
public class MyClass
{ ... }
Then be sure to set the namespace to an empty string when (de)serializing:
DataContractSerializer deserializer = new DataContractSerializer(typeof(MyClass), typeof(MyClass).Name, "");