> I haven't found anything how to omit the document
> declaration
I posted this last night, but I guess it didn't make it through...
Use the overload of XmlSerializer.Serialize that takes an XmlWriter.
Justin Rudd
http://www.pinetree-tech.com/
http://www.pinetree-tech.com/weblog/
You can read
You can remove the namespaces by passing an empty XmlSerializerNamespaces
object to the Serialize method:
static void Main(string[] args)
{
XmlSerializer oSer = new
XmlSerializer(typeof(TestClass));
StringWriter sw = new StringWriter();