Convert one XML file into another XML file format

I would like to convert one xml string in to another XML format. Herewith I attached the sample XML files.

I would like to convert 12-sample.xml file in such a way that it sync with 13-sample.xml file format.

Please do assist.
12-Sample.xml
13-Sample.xml
LVL 16
Easwaran ParamasivamAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
anarki_jimbelConnect With a Mentor Commented:
One way to achieve this is to use xslt: xml file transformations.
You may read more here: http://www.w3schools.com/xsl/.

To write a proper xslt for your case would be quite a bit of work :).

Another way is to read data from one xml and create a new xml document using this data. Again, this is not a few lines task and also we have no proper specification on transformation.
0
 
Easwaran ParamasivamAuthor Commented:
I replaced SettlementInfo with VipSettlementConfigParam then it works fine.
0
 
Easwaran ParamasivamAuthor Commented:
Thanks for your assistance.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.