Click here to Skip to main content
12,072,067 members (60,743 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VC6 C++
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 18-Dec-11 23:25pm
   
is there any othe options?
SAKryukov 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 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 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160208.1 | Last Updated 18 Dec 2011
Copyright © CodeProject, 1999-2016
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