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 319
1 Maciej Los 295
2 Sergey Alexandrovich Kryukov 230
3 CPallini 205
4 Sinisa Hajnal 166
0 OriginalGriff 7,760
1 Sergey Alexandrovich Kryukov 7,072
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,785


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 18 Dec 2011
Copyright © CodeProject, 1999-2014
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