473,503 Members | 2,148 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to compare two xml documents?

I have to xml documents. I want to compare them and show them in two treeview
controls.

The one on the left is the new version of the document and the one is the
right is the old version of the same document. So if I have a node in the new
one that it is not in the old one it means it's has been added and if I have
a node in the old one that it is
no tin the new one it means it's has been removed.

I want to show the differences between the two doc in two treeview.

Anybody can help me?

Thanks
Mar 16 '07 #1
2 10425
I know the search term is called diff so try this search term at google

diff xml files c#

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
"Iker Llanos" <Ik********@discussions.microsoft.comwrote in message
news:8C**********************************@microsof t.com...
>I have to xml documents. I want to compare them and show them in two
treeview
controls.

The one on the left is the new version of the document and the one is the
right is the old version of the same document. So if I have a node in the
new
one that it is not in the old one it means it's has been added and if I
have
a node in the old one that it is
no tin the new one it means it's has been removed.

I want to show the differences between the two doc in two treeview.

Anybody can help me?

Thanks


Mar 17 '07 #2
The XML Diff and Path tool at Microsoft should give you a good starting
point - it's almost exactly what you're looking for:
http://msdn.microsoft.com/XML/XMLCod...xmldiffgui.asp

There are a whole lot of related code samples at:
http://msdn.microsoft.com/XML/XMLCod...s/default.aspx

--
Chris Mullins, MCSD.NET, MCPD:Enterprise, Microsoft C# MVP
http://www.coversant.com/blogs/cmullins

"Iker Llanos" <Ik********@discussions.microsoft.comwrote in message
news:8C**********************************@microsof t.com...
>I have to xml documents. I want to compare them and show them in two
treeview
controls.

The one on the left is the new version of the document and the one is the
right is the old version of the same document. So if I have a node in the
new
one that it is not in the old one it means it's has been added and if I
have
a node in the old one that it is
no tin the new one it means it's has been removed.

I want to show the differences between the two doc in two treeview.

Anybody can help me?

Thanks


Mar 17 '07 #3

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

Similar topics

1
1899
by: Neil | last post by:
Folks, I've got a problem at work, and I'm hoping that someone out there may have had something similar (although I doubt it!) or may be able to offer some advice. I'm in the process of...
2
2409
by: Muqu | last post by:
hi, I am trying to compare one nicely written html file against another program generated one, whose formatting isn't very appealing to human eyes. I am tuning the code so that two htmls will...
2
2760
by: Ganesh Muthuvelu | last post by:
Hello, How can I compare or visually check the differences between two XML schemas. Let us say I have two files like "version_1.xsd" and "version_2.xsd" , how would I programtically find out the...
1
3345
by: Twinkle | last post by:
HI All, I have a problem..How to match two same word files. if someword missing in second files then it should be highlight by color change.
1
3975
by: lewis76 | last post by:
Hi all, I feel like this question has been asked before but I just cannot seem to find a good answer. Q: Is there a way to have two XML files and compare them and save them to one. Example:...
2
6009
seshu
by: seshu | last post by:
Hi Everybody I have a piece of code to compare two documents using vb.net but the problem here is it is comparing the whloe sentence but not word by word how to compare word by...
3
9537
by: super.raddish | last post by:
Greetings, I am relatively new to, what I would call, advanced XSLT/XPath and I am after some advice from those in the know. I am attempting to figure out a mechanism within XSLT to compare the...
1
1367
by: =?Utf-8?B?RGFuaWVsIERpIFZpdGE=?= | last post by:
II want to compare how many seconds there are between files. If the files are within a 1 - 10 second range I want to copy them to their own folders. What I have so far is a couple methods that take...
2
5678
by: =?Utf-8?B?UFM=?= | last post by:
Hi, Is there a way to compare PDF, Word Document, Excel using C# like WinDiff utility that compares text file and display the result with the modified text in both the document? -- Thanks,...
0
7205
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,...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7353
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...
1
7011
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...
0
7468
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
3170
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
401
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.