Re: [DOTNET] XMLSerializer Issue

2002-05-13 Thread Justin Rudd
> 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

Re: [DOTNET] XMLSerializer Issue

2002-05-13 Thread Christoph
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();