Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi all,
i've an xml file like
<a>
<b/>
</a>
now i want to change
<a> to <1>
.
i'm using msxml parser.
how can i move with this?
please help me.
thank you in advance
Posted
Updated 18-Dec-11 16:35pm
v6

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

—SA
 
Share this answer
 
v3
Comments
Jijesh Balakrishnan b 18-Dec-11 23:25pm    
is there any othe options?
Sergey Alexandrovich Kryukov 19-Dec-11 0:17am    
Before asking such question, you should have explain your ultimate goal. What do you mean "other options"? Leaving the tag <a> is a valid option, for example. What's wrong with it? What do you want to achieve?
--SA
refer the following link , it will help you

http://www.xmlplease.com/rename-xml-w3cdom
 
Share this answer
 
Comments
Jijesh Balakrishnan b 18-Dec-11 23:25pm    
it is not working
renameNode(node,uri,name)

use the above one to rename
 
Share this answer
 
Comments
Jijesh Balakrishnan b 18-Dec-11 23:25pm    
i couldn't find this function.i've tried this

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900