Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VC6
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 18-Dec-11 17:27pm
Edited 18-Dec-11 17:35pm
v6
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

You cannot. The tag <1> would make your XML not well-formed. You are done Frown | :-( .
 
—SA
  Permalink  
v3
Comments
Jijesh Balakrishnan b at 18-Dec-11 23:25pm
   
is there any othe options?
SAKryukov at 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
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

refer the following link , it will help you
 
http://www.xmlplease.com/rename-xml-w3cdom
  Permalink  
Comments
Jijesh Balakrishnan b at 18-Dec-11 23:25pm
   
it is not working
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

renameNode(node,uri,name)
 
use the above one to rename
  Permalink  
Comments
Jijesh Balakrishnan b at 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)

  Print Answers RSS
0 OriginalGriff 445
1 Suvendu Shekhar Giri 134
2 Abhinav S 126
3 Maciej Los 125
4 Peter Leow 120
0 Sergey Alexandrovich Kryukov 9,623
1 OriginalGriff 8,870
2 Peter Leow 4,984
3 Kornfeld Eliyahu Peter 3,300
4 Maciej Los 2,456


Advertise | Privacy | Mobile
Web01 | 2.8.150327.1 | Last Updated 18 Dec 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100