you can use notepad++ version 7.5.3 https://notepad-plus-plus.org/download/v7.5.3.html and the compare plugin v 2.0.0 from here
Tag: notepad++
using notepad++ to quickly format xml
You must have notepad++ installed, also the XML Tools plugin, and then from menu of XML Tools plugin have selected “Pretty print (XML only – with line breaks)” , this will format any piece of XML with all the proper line spacing. then it should be like this source here