Removing Unused Namespaces from DataContractSerializer Output

Is there a way to stop the output of the DataContractSerializer xmlns: am = "http://www.w3.org/2001/XMLSchema-instance" in the first xml tag? It is not used, and I'm trying to customize my messages to 1 KB so that they are delivered by Raw Push Notifications for Windows Phone 7. I already received binary serialized and deleted all other namespaces. Any help would be greatly appreciated.

Thank!

- Change - I meant 1K, not 1000K, lol

+5
source share
1 answer

This is not just what you ask, but one way to compress data is to give your members a shorter name

[DataMember(Name = "ID")]
 int IdNumber;
+1

All Articles