Csharp- XML文档中的新行 [英] Csharp- new line in xml doc
本文介绍了Csharp- XML文档中的新行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在xml文档中插入换行符的方法是什么?
plz help
i want to insert a newline in the xml document what is the method for that?
plz help
推荐答案
root.AppendChild(doc.CreateTextNode("\ n"));
root.AppendChild(doc.CreateTextNode("\n"));
这篇关于Csharp- XML文档中的新行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文