为了去除xml命名空间,可是发现xml所有内容都没了

代码如下,为什么连内容都消失了

public static void xmlDeserialize()
{

        int obj = 1;
           XmlSerializer serializer = new XmlSerializer(obj.GetType());

        // 将对象序列化输出到文件  
        FileStream stream = new FileStream(@"F:\1\33.xml", FileMode.Create);

        XmlWriterSettings settings = new XmlWriterSettings();
        settings.Indent = true;
        settings.IndentChars = "    ";
        settings.NewLineChars = "\r\n";


        using (XmlWriter xmlWriter = XmlWriter.Create(stream, settings))
        {
            // 强制指定命名空间,覆盖默认的命名空间  
            XmlSerializerNamespaces namespaces = new XmlSerializerNamespaces();
            namespaces.Add("" , "" );
            serializer.Serialize(xmlWriter, obj, namespaces);
            xmlWriter.Close();
        };
        stream.Close();
            }