<p>In order to merge independant HTML changes, I'm looking for recomendations for a 3-way comparison / merge library for HTML.  The common 3-way text merge algorithms perform poorly because they do not understand the tree like structure of HTML and XML.  Of course, such a library must understand the looser syntax of HTML, i.e. tags are not always closed. My platform is .Net.</p>

[{'answer_id': 65561, 'author': 'Joel Martinez', 'author_id': 5416, 'author_profile': 'https://Stackoverflow.com/users/5416', 'pm_score': -1, 'selected': False, 'text': '<p>A simple google search offered up: <a href="http://www.codeproject.com/KB/cs/differ.aspx" rel="nofollow noreferrer">Differ</a>.  I\'ve never used it so I can\'t vouch for the quality of that :-)</p>\n'}, {'answer_id': 65584, 'author': 'Daren Thomas', 'author_id': 2260, 'author_profile': 'https://Stackoverflow.com/users/2260', 'pm_score': 1, 'selected': False, 'text': '<p>You could also just go cheep: Run the files through <a href="http://tidy.sourceforge.net/" rel="nofollow noreferrer">tidy</a> and then compare. This will result in similar structures, where new / deleted children will show up with traditional diff tools. It breaks down on removal / addition of surrounding nodes - good luck on solving that one...</p>\n\n<p>Also, the <a href="http://www.snapfiles.com/get/xmlnotepad.html" rel="nofollow noreferrer">XML Notepad</a> (sorry, couldn\'t find a link that works on microsoft.com) by Microsoft can compare XML files and does this in a tree based fashion.</p>\n'}]
['https://Stackoverflow.com/questions/65463', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/9367/']