Search code examples
c#openxml

Diff 2 Open XML Word Documents


Thanks in advance for any help and assistance.

I'm trying to find some utility / direction on how best to compare two word docx files (Original and modified version) for differences and then to highlight the changes in the modified version in c#.

Again many thanks for any assistance you can provide.


Solution

  • The OpenXML SDK 2.0 Toolkit comes with a tool that does this. It's called OpenXMLDiff. You can also read about what else the toolkit offers here: An introduction to Open XML SDK 2.0.

    If that's not what you need then you're going to have to go through each package of the Open XML documents and determine the differences between them.