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 400
1 Sergey Alexandrovich Kryukov 329
2 Afzaal Ahmad Zeeshan 264
3 BillWoodruff 245
4 CPallini 195
0 OriginalGriff 5,560
1 DamithSL 4,476
2 Maciej Los 3,942
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,175


Advertise | Privacy | Mobile
Web03 | 2.8.141216.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