在c#中写入现有的xml文件 [英] write in Existing xml File in c#

查看:103
本文介绍了在c#中写入现有的xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有

Ctreated一个XMl文件像这样



i have
Ctreated an XMl file Like this

<?xml version="1.0" encoding="UTF-8"?>
<MTS>
</MTS>





现在我正在拖延并放弃三个节点

所以当我为这个节点拖拽时我想要试试那个naem这个Xml文件中的节点

像这样

<< pre lang =xml>测试>



<名称> jkl< /名称>

< /测试>

<测试>



<名称> ff< /名称>

< / Test>



now i am draging and droping the three node
so when i do drag drop for this nodei want to wite the naem of the node
in this Xml file like this
<<pre lang="xml">Test>

<Name>jkl</Name>
</Test>
<Test>

<Name>ff</Name>
</Test>

推荐答案

参见 http://www.dotnetperls.com/xmlwriter [ ^ ]和 http://msdn.microsoft.com/en-us/library/system.xml.xmlwriter(v = vs.110).aspx [ ^ ]。


这篇关于在c#中写入现有的xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆