Content Manager includes the out-of-the-box implementation of the IPublishComparePlugin interface.
IPublishComparePlugin - IshPublishCompare Compares 2 publish export XML files and generates a new file with the compared content. This plugin uses the ChangeTracker component which will generate an xml result file with insert and remove processing instructions around the changed, added or removed XML content.