Removing version from xml file

前端 未结 3 1820
醉话见心
醉话见心 2020-12-19 00:13

I am creating a Xml like format using XmlWriter. But in the output there is version information also.



        
3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-19 00:18

    You can use

    XmlWriterSettings class

    and use XmlWriterSettings.OmitXmlDeclaration Property

提交回复
热议问题