更改xml节点名称 [英] Change xml node name
本文介绍了更改xml节点名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用xml,
I am having an xml like,
<root>
<name>
asdf
</name>
<age>
21
</age>
<city>
kjhgf
</city>
<root>
在开放节点中我必须插入一个字符串,例如,
O / P需要如下,
In the opening node i have to insert a string like,
O/P need like below,
<root>
<name "a html tag">
asdf
</name>
<age "a html tag">
21
</age>
<city "a html tag">
kjhgf
</city>
</root>
推荐答案
你喜欢下面不是格式良好的 XML文本,因此,它根本不是XML。
在使用XML之前,你需要从学习XML是什么开始,语言本身: http://en.wikipedia.org/wiki/XML [ ^ ]。
-SA
You "like below" is not well-formed XML text, so, it is not XML at all.
Before working with XML, you need to start from learning what XML is, the language itself: http://en.wikipedia.org/wiki/XML[^].
—SA
这篇关于更改xml节点名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文