Have a look at File comparison tools, from which I am using WinMerge. It has an ability to compare XML documents (you may wish to enable DisplayXMLFiles prefilter for v2.14.0 or PrettifyXML for v2.16.x).

DisplayXMLFiles.dll - This plugin pretty-prints XML files nicely by inserting tabs and line breaks. This is useful for XML files that do not have line returns in convenient locations.

Note for v2.16.x

The plugin PrettifyXML is supplied with the software package. It can be activated as following:

  • Make sure that Plugins → Plugin Settings → Enable plugins is enabled.
  • Then use either File → Recompare As → Prettify XML or Plugins → Scripts → Prettify XML

For those who wish to play with deprecated DisplayXMLFiles, he needs to download e.g. winmerge-2.16.14-full-src.7z and copy Plugins\dlls\X64\DisplayXMLFiles.dll to WinMerge\MergePlugins\.

See also my feature comparison table.

Answer from dma_k on Stack Overflow
🌐
SourceForge
diffxml.sourceforge.net
diffxml - XML Diff and Patch Utilities
diffxml & patchxml: Tools for comparing and patching XML files · The standard Unix tools diff and patch are used to find the differences between text files and to apply the differences. These tools operate on a line by line basis using well-studied methods for computing the longest common ...
🌐
GitHub
github.com › Shoobx › xmldiff
GitHub - Shoobx/xmldiff: A library and command line utility for diffing xml
There is also a method diff_trees() that take two lxml trees, and a method diff_texts() that will take strings containing XML.
Starred by 226 users
Forked by 53 users
Languages   Python 98.7% | Python 98.7%
🌐
PyPI
pypi.org › project › xmldiff
xmldiff · PyPI
When renaming tags the XMLFormatter will mark them with “diff:rename” instead of making a new tag and deleting the old. Tags will now be moved first, and updated and renamed later, as the new tag name or attributes might not be valid in the old location. ... A format intended to be parseable by anyone parsing the old format. XML with changes marked though tags and attributes · xmldiff 2.0 is significantly slower than xmldiff 0.6 or 1.0, the emphasis so far is on correctness, not speed. ... Download the file for your platform.
      » pip install xmldiff
    
Published   May 13, 2024
Version   2.7.0
🌐
TextCompare
textcompare.org › xml
Online Xml Compare Tool
Unlimited: There is no limit on number of comparisons you can do. You can compare as many Xml files as you want. No, all the processing is done on your 🖥 browser, so nothing is saved on our server unless you choose to save to share online. For private sharing, you can download the diff as PDF ...
🌐
Xlcompare
xlcompare.com › compare-xml-files.html
Compare XML Files Online. Free. No Upload. Get the Semantic XML diffs.
October 3, 2009 - With its comprehensive comparison ... among development teams. Download Now · Get License · xlCompare uses XML semantics to compare two XML documents....
🌐
SemanticDiff
semanticdiff.com › online-diff › xml
SemanticDiff - Compare XML Online
Our online XML diff tool requires an internet connection to work because the computation is performed on our servers. If you are looking for a semantic XML comparison that works offline, you may want to check out our SemanticDiff Visual Studio Code extension.
Find elsewhere
🌐
CoreFiling
corefiling.com › home › open source tools › xml comparison tool
Free Online XML Comparison Tool
June 20, 2025 - CoreFiling XML Differences uses XML Pretty Printer and a custom diff to display differences between XML files in an easy-to-read format.
🌐
Altova
altova.com › xmlspy-xml-editor › compare-xml
Compare XML Files | Altova
DiffDog also supports XML-aware comparisons, including graphical XML Schema differencing and will automatically generate an XSLT stylesheet to transform XML documents to the new XSD. You can download a free trial of DiffDog, or test drive the MissionKit tool suite, which includes both XMLSpy ...
🌐
Oxygen XML
oxygenxml.com › xml_diff_and_merge.html
Oxygen Compare and Merge Tools
Oxygen provides a simple means of performing file and folder comparisons. The complete XML diff and merge solution offers directory, file, 3-way, and XML fragment comparisons, six different algorithms, and multiple levels of comparison.
🌐
Stylus Studio
stylusstudio.com › xml-diff.html
XML Diff Tool
The XML Diff tool is integrated with the XML Tree View and the XML Text View of Stylus Studio®'s XML Editor, and switching views is just a matter of choosing a tab at the bottom of the editing screen. Don't get tricked into paying an additional $129 for those other XML diff tools that perform like real dogs — download Stylus Studio® today!
🌐
Altova
altova.com › diffdog
DiffDog Diff/Merge Tool | Altova
As MusicXML became more popular, we needed a truly XML-aware differencing program to evaluate the XML files created by our Dolet plug-ins. DiffDog gives us the high quality regression testing tool that we had long sought for our MusicXML projects.” ... Download a free 30 day trial of Altova DiffDog now!
🌐
ExtendsClass
extendsclass.com › xml-diff.html
XML diff - Compare xml online
There are several free online tools that can help you with this, such as Flexter XML to SQL online. ... You can report a bug or give feedback by adding a comment (below) or by clicking "Contact me" link (at the top right hand corner of the page). Comments ... What are the input file parameters? Chokes comparing 9MB files. ... Can you show the results after comparing? like: 1. if two files are the same, it will show: 0 difference 2.
🌐
Minifier
minifier.org › xml-compare
XML Compare - Online XML Diff Checker
Green (Insert/Change): Data or ... added or differs in the second file. Precisely compares XML files without lowering execution. Processes complex XML structures and determines deviations in tags, attributes, and values. Easily visualize and compare two XML files in parallel. Observe the changes free of any complex manual inspections. No need for downloads or ...
🌐
Ali-ulvi
ali-ulvi.github.io › XML_equality_checker_comparer.html
XML Compare Test Tool
Sometimes we need to compare XML files ignoring their elements' order but there was not such FREE tool before. Now there is! Download here. This tool checks two XMLs whether they are same, if not prints the first difference. Great for XML testing.
🌐
Online Text Compare
onlinetextcompare.com › xml
Compare XML files online
FREE two-way XML format, diff and merge tool. No Signup required. Nothing to install. All comparisons are 100% private, secure and happens locally right in your web browser
🌐
SourceForge
sourceforge.net › projects › xmldiff
xmldiff download | SourceForge.net
Download xmldiff for free. xmldiif is a library which allows to show diff between xml documents. xmldiif is a library which allows to show diff between xml documents
🌐
JSoftwareLabs
jsoftwarelabs.com › compare-diff-online › xml-comparison
Compare xml online - XML diff tool
Would you like to preserve history for your own files and differences? Would you like dashboard for comparison? Would you like on premise deployment for these utilities? Loading... Close Rate! XML object One · Ignore namespaces · Ignore Order · Namespace regrex to ignore · Node separator · Compare & View Result · Download PDF Report ·