Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Free C# XML Diff library or class

Tags:

c#

diff

xml

I’m looking for XML Diff class or library. There are my requirements: - open source :) - object model for output (*) - rather fast (for 4mb XML)

I'm trying to use MS XML Diff and Patch Tools, but I wanna get a list of objects with differences of 2 XML files (instead HTML markup).


UPD: Thanks for all of your responses. I implemented my own solution; it’s not too hard with Linq2Xml :) UPD2: Sorry guys, but i can't post my solution here now (i actually haven't got it because i have changed my work recently). Also my solution have some specific parts, so it can't suit common problems any way. The main advice is to use Linq2Xml, implement your logic and have fun :)

like image 749
lak-b Avatar asked Dec 21 '25 13:12

lak-b


2 Answers

I did some research on this topic.

Tool or library for comparing xml files

like image 153
joe Avatar answered Dec 23 '25 02:12

joe


Not quite sure from you post if you are tring to do this in code or not.

But if you are just after a nice programe to view the two documents side by side and see the difreances and make changes to them i would recomend Beyond Compare 3.

like image 27
TheAlbear Avatar answered Dec 23 '25 02:12

TheAlbear



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!