C# creating XML output file without <?xml version=“1.0” encoding=“utf-8”?>

后端 未结 2 1880
既然无缘
既然无缘 2021-01-04 10:51

I\'m new to C# development so maybe a very simple question here.

I\'m trying to get an output which starts as this:

    

        
2条回答
  •  有刺的猬
    2021-01-04 11:35

    XmlWriterSettings settings = new XmlWriterSettings();
    settings.OmitXmlDeclaration = true;
    

提交回复
热议问题