Solved

Convert one XML file into another XML file format

Posted on 2013-05-20
3
441 Views
Last Modified: 2013-05-27
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
0
Comment
Question by:Easwaran Paramasivam
  • 2
3 Comments
 
LVL 29

Accepted Solution

by:
anarki_jimbel earned 500 total points
ID: 39182691
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
 
LVL 16

Author Comment

by:Easwaran Paramasivam
ID: 39198590
I replaced SettlementInfo with VipSettlementConfigParam then it works fine.
0
 
LVL 16

Author Closing Comment

by:Easwaran Paramasivam
ID: 39198591
Thanks for your assistance.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now