I try to serialize an object with custom namespaces. This is how the class looks like:
[XmlRoot(\"Root\", Namespace = \"myNamespace\")] public partial class
You wont be able to do anything special to your serialized class - its a known issue. Various workarounds have been suggested here:
XmlSerializer: remove unnecessary xsi and xsd namespaces
How to serialize an object to XML without getting xmlns="..."?
xml serialization - remove namespace