Groups | Blog | Home
all groups > dotnet xml > june 2005 >

dotnet xml : Track the difference of 2 xml files by code



cliff
6/7/2005 1:26:03 PM
Folks:

I am trying to find a best solution of the task of tracking the changes of a
xml file.

The scenrio is like this: we have a original copy of xml data. Clients
submit a new copy of xml data with changes (like new nodes or change text
values etc). What is the best approch to get a complete list of the changes
by using .net/C# code?

I know there is a tool :http://apps.gotdotnet.com/xmltools/xmldiff/. But it
is for human interaction. How can I do the same thing in code?

Also, Dataset can track the change of xml within it. but in my case, clients
do not get a dataset from me, make change on it and return it to me. They
just give me a new copy of changed xml, how can I make the dataset to spit
out the difference of the 2 copies of xml files?

cliff
6/8/2005 2:09:04 PM
Mat:

Yes, I also found this tool with api interface that I can interact with.
Thanks!

Cliff

[quoted text, click to view]
Mat Kramer
6/8/2005 3:57:52 PM
MS has a .NET tool called XmlDiffPatch that can do this. See
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnxmlnet/html/xmldiff.asp

[quoted text, click to view]



----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
AddThis Social Bookmark Button