How to merge two xml files using xml file as strings in C# code example
Example: merge xml files into one c#
using (var output = File.Create(originalFileName))
{
foreach (var file in new[] { "File1", "File2" })
{
using (var input = File.OpenRead(file))
{
input.CopyTo(output);
}
}
}