4

How to compare two xml files in visual studio 2010? I saw some programmer compares XML files using tool but don't know which is that tool is.

Abhijit Shelar
  • 1,055
  • 7
  • 21
  • 41

3 Answers3

2

Comparing two files works out of the box when your file is in team foundation server. This adds "Compare..." in the context menu. You can use blog.paulbouwer.com link above, but I would recommend James's blog, which cover almost any possible diff and merge tool http://blogs.msdn.com/b/jmanning/archive/2006/02/20/diff-merge-configuration-in-team-foundation-common-command-and-argument-values.aspx The tools mentioned above winmerge and code compare do not recognize xml natively, I found stylus studio which promises xml handling http://www.stylusstudio.com/xml_diff.html

MichalMa
  • 1,230
  • 6
  • 14
-1

For me, WinMerge was the best I found to compare files. It can be used in Visual Studio also to compare files (source code, XML at least...).

Check it out: http://winmerge.org/

Hint to integrate it into Visual Studio (and replace the built-in diff tool): http://blog.paulbouwer.com/2010/01/31/replace-diffmerge-tool-in-visual-studio-team-system-with-winmerge/

s218
  • 122
  • 6
-1

Check this: Code Compare

This tool automatically integrates in VS 2010.

Simon Linder
  • 3,378
  • 4
  • 32
  • 49