473,830 Members | 2,134 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Track the difference of 2 xml files by code

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?

Thanks and any suggestion is welcomed!
Nov 12 '05 #1
2 1473
MS has a .NET tool called XmlDiffPatch that can do this. See
http://msdn.microsoft.com/library/de...ml/xmldiff.asp

"cliff" <cl***@discussi ons.microsoft.c om> wrote in message
news:CB******** *************** ***********@mic rosoft.com...
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?

Thanks and any suggestion is welcomed!


----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Nov 12 '05 #2
Mat:

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

Cliff

"Mat Kramer" wrote:
MS has a .NET tool called XmlDiffPatch that can do this. See
http://msdn.microsoft.com/library/de...ml/xmldiff.asp

"cliff" <cl***@discussi ons.microsoft.c om> wrote in message
news:CB******** *************** ***********@mic rosoft.com...
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?

Thanks and any suggestion is welcomed!


----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
2054
by: MikeT | last post by:
I have a page that produces little thumbnails of the 3D models it finds in a specified directory (and iterates down through any sub directories). It basically scans each directory for 3D Studio Max files using the filesystemobject and writes an activeX component called iDrop for each file so it can be displayed on the page (and drag-dropped straight into Max). If it happens to find a similarly named XML file in the directory, it loads...
8
2496
by: Dica | last post by:
i've got a client that wants to be able to review records about IIS generated emails. in his own words, he wants the "ability to track and report message status (i.e. how many messages were sent successfully, how many were blocked, how many bounced back with an incorrect address)" i'd start by adding a new row containing the email address, dateTime, etc when first sending the email, but how to track the rest of the info? for...
9
2024
by: DBQueen | last post by:
Is there an easy way to keep track of which modules I've worked with day by day. I'd like to see a log of what items I "affected" - so that when a database goes sour I can easily see what changed from the previous version (my feeble mind can't retain all of this, especially when a week passses before getting back to a project). Is there a log mechanism within Access or is there some sort of support software someone can recommend which...
5
2341
by: Colleyville Alan | last post by:
I have some data in a table structured like this: Date Cust_ID CUSIP Amount 01/31/2005 060208 02507M303 27,061.84 02/28/2005 060208 02507M303 32,049.00 Is there a way to construct a query that will give me the difference by customer and CUSIP by month? The real app has over 200,000 records (12 months with 20,000+ entries per
3
4421
by: johnny | last post by:
hi all! I am starting to study the best way to track site visitors. Logfiles stats which come with every web hosting, have little metrics to be analyzed and also problems with cached pages which are not seen. I thought to use php and cookies to track returning visitors, however I see that all pro solutions use javascript to set cookies. Now since I prefer to avoid js as much as I can cause they can be blocked by browser settings, is it...
27
2344
by: Frederick Gotham | last post by:
I thought it might be interesting to share experiences of tracking down a subtle or mysterious bug. I myself haven't much experience with tracking down bugs, but there's one in particular which comes to mind. I was writing usable which dealt with strings. As per usual with my code, I made it efficient to the extreme. One thing I did was replace, where possible, any usages of "strlen" with something like: struct PtrAndLen { char *p;
3
1822
nikpreek
by: nikpreek | last post by:
Hi All, I know its very basic question and event I know the answer for this. But I haven't found any proof of this. Is there any difference between thse queries (given below at end of post)? (In terms of performance) I'm using SQL 2000 and 2005 both. When I check with "Esimated Execution Plan", there is no difference (50% each), but there is very little data in my tables. I feel, Query 1 is preferred style of T-SQL developers and Query...
23
5748
by: raylopez99 | last post by:
A quick sanity check, and I think I am correct, but just to make sure: if you have a bunch of objects that are very much like one another you can uniquely track them simply by using an ArrayList or Array, correct? An example: create the object, create an array, the stuff the object into the array. Later on, assume the object is mutable, the object changes, but you can find it, if you have enough state information to uniquely identify...
11
2767
by: Andrew G. Koptyaev | last post by:
Please help. I need to keep track of how many object of a given class without introducing a non-class member variable. Which one of the following will allow me to do this? 1) Add member variable that gets incremented in the default constructor and decremented in the destructor. 2) Add local variable that gets incremented in the each constructor and decremented in the destructor.
0
9790
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10481
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10524
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9312
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7741
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6948
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5616
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5779
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3956
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.