能否通过程序修改标签名称,大家帮忙看看
<?xml version="1.0" encoding="GB2312" ?>
- <root>
root text
<author name="James" location="UK">James Strachan</author>
<author name="Bob" location="US">Bob McWhirter</author>
</root>
怎样通过代码修改<root>为<newroot>标签
修改后的文档应该是这样的
<?xml version="1.0" encoding="GB2312" ?>
- <newroot>
root text
<author name="James" location="UK">James Strachan</author>
<author name="Bob" location="US">Bob McWhirter</author>
</newroot>

