This is a FAQ.
To remove the default namespaces, add a namespace "" pointing to "" to the
XmlSerializerNamespaces:
System.Xml.Serialization.XmlSerializer s = new
System.Xml.Serialization.XmlSerializer(typeof(MyType));
MyType x= new MyType();
System.Xml.Serialization.XmlSerializerNamespaces ns = new
System.Xml.Serialization.XmlSerializerNamespaces();
ns.Add( "", "" );
s.Serialize(System.Console.Out, x, ns); // serialize self to
Console.Out
-Dino

Signature
Dino Chiesa
Microsoft Developer Division
d i n o c h @ o n l i n e . m i c r o s o f t . c o m
> In an application I'm making I've got a config object which I would like to
> serialize to the XML format in a .config file which would then be loaded the
[quoted text clipped - 13 lines]
>
> James