If a one-line XML change produces a hundred-line diff, the problem is usually indentation, not the change itself.

Most configuration files and API payloads are read by parsers that do not care about pretty indentation. That means you can normalise the file before comparing it.

A practical workflow: format with a fixed rule (2 spaces, 4 spaces or tabs), validate first so a broken tag does not mislead the diff, then compare the formatted output. Keep one indentation convention per repository.

When something fails, ask for the line and column rather than reading the whole file. A parser that reports the exact position turns a ten-minute hunt into a ten-second fix.

XMLFormatter is a free browser-based formatter, validator and minifier. It reports syntax errors by line and column and never uploads the document.