XML files are just text files. Why can't you just read one in as a text file, open the other for append, and write out what you just read in?
2006-08-10 04:35:11
·
answer #1
·
answered by Larry 6
·
0⤊
0⤋
First element could be: why are you annoying approximately memory? There extremely should not be a controversy for a pair of XMLs. That mentioned, the set of rules you pick on might remember on the way you define alterations. as an occasion, evaluate 2 record the place the 2nd has an added line on the top. in case you had to perceive that addition precisely, you will nonetheless could analyze 2 finished archives.
2016-11-04 07:02:55
·
answer #2
·
answered by ? 4
·
0⤊
0⤋
the logic for this
Read the first file by loading it in an Xml document.
load another file in another xml document and take its outerxml and append it into the first one and then save the first document.
XmlDocument xmlfile1=null;
XmlDocument xmlfile2=null;
try
{
xmlfile1 =new XmlDocuiment();
xmlfile1.Load("");
xmlfile2 =new XmlDocuiment();
xmlfile2.Load("");
xmlfile1.DocumentElement.InnerXml+=xmlfile2.DocumentElement.OuterXml.toString();
xmlfile1.Save(("");
}
catch(Exception e)
{
throw e;
}
finally
{
if (xmlfile1!=null) xmlfile1=null;
if (xmlfile2!=null) xmlfile2=null;
}
so simple that's it .
2006-08-10 19:39:28
·
answer #3
·
answered by Anonymous
·
0⤊
0⤋
Please look at the link below for code and explanation.
http://msdn.microsoft.com/msdnmag/issues/03/03/XMLFiles/
hope that helps.
Cheers
2006-08-10 04:42:38
·
answer #4
·
answered by KalyanC 2
·
0⤊
0⤋