How can I generate XML with CR, instead of CRLF in XmlTextWriter

后端 未结 4 1481
故里飘歌
故里飘歌 2021-01-19 17:57

I\'m generating XML via XmlTextWriter.

The file looks good to my eyes, validates (at wc3), and was accepted by the client.

But a client vendor is complainin

4条回答
  •  一向
    一向 (楼主)
    2021-01-19 18:41

    of course, moments after asking, I find a clue on MSDN (that I couldn't find via google) that refers to XmlWriterSettings.NewLineChars

    which then led me to the unaccepted answer on SO: Writing XMLDocument to file with specific newline character (c#)

    It's all in the terminology.....

提交回复
热议问题