如何重命名xml节点 [英] how to rename an xml node

查看:82
本文介绍了如何重命名xml节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我有一个XML文件,例如

hi all,
i''ve an xml file like

<a>
<b/>
</a>

现在我要更改

<a> to <1>

.
我正在使用msxml解析器.
我该如何移动?
请帮帮我.
提前谢谢您.

.
i''m using msxml parser.
how can i move with this?
please help me.
thank you in advance

推荐答案

您不能.标记<1>将使您的XML格式不正确.您已完成:-( ..

—SA
You cannot. The tag <1> would make your XML not well-formed. You are done :-(.

—SA


请参考以下链接,它将为您提供帮助

http://www.xmlplease.com/rename-xml-w3cdom
refer the following link , it will help you

http://www.xmlplease.com/rename-xml-w3cdom


renameNode(node,uri,name)

使用上面的一个来重命名
renameNode(node,uri,name)

use the above one to rename


这篇关于如何重命名xml节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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