Hi,

My self Suhas H G, I need to merge the data from one xml file into the another xml file(At the end of this xml file).
Please share the working code if any one has.

Thanks in advance!!!
Suhas

You didn't do any research did you? On top of being pretty freaking easy if you know XSLT or basic XML processing in .NET, a simple search on google gives you complete solutions.

>Merging data from xml file to another

Use Merge method of DataSet class.

DataSet ds1 = new DataSet();
    DataSet ds2 = new DataSet();

    ds1.ReadXml(@"c:\file1.xml");
    ds2.ReadXml(@"c:\file2.xml");

    ds1.Merge(ds2);
    ds1.WriteXml(@"c:\file3.xml");
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.