How do I write an XML string to a file?

前端 未结 4 1429
一生所求
一生所求 2020-12-06 04:20

I have a string and its value is:


    qwerty
    adsf 
    The text of the samp         


        
4条回答
  •  不知归路
    2020-12-06 04:50

    You'll have to use CDATA section. More specifically, create a XmlCDataSection using XmlDocument.CreateCDataSection and supply your string as a parameter.

提交回复
热议问题