重命名特定的Xml节点onButton单击 [英] Rename a Specific Xml Node onButton Click
本文介绍了重命名特定的Xml节点onButton单击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有一个XML文件,如:
< a>
< 1>
< i>文本</i>
< i> text2</i>
</1>
< 2>
< i>文本</i>
< i> Text2</i>
</2>
</a>
我想重命名< 1>到< B>在按钮上单击.
请快速帮助我.
hi guys,
i have an xml file like :
<a>
<1>
<i>text</i>
<i>text2</i>
</1>
<2>
<i>text</i>
<i>Text2</i>
</2>
</a>
i want to rename a <1> to <B> on button click.
please help me in this quickly.
推荐答案
看看这个: ^ ]
我找到了两个可以解决您问题的链接:
1. http://stackoverflow.com/questions/475293/change-the-node-names-in-an-xml-file-using-c [ http://www.goodgord.com/2006/10/how-to-rename-xml-node-in-c.html [
I found two links which can solve your problem :
1. http://stackoverflow.com/questions/475293/change-the-node-names-in-an-xml-file-using-c[^]
2. http://www.goodgord.com/2006/10/how-to-rename-xml-node-in-c.html[^]
Hope this helps.
All the best.
这篇关于重命名特定的Xml节点onButton单击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文