Pretty-print XML on the command line with xmllint (2026)
xmllint (part of libxml2, already on most systems) reformats ugly, minified, or single-line XML into something readable. Pipe an API response straight through it, control the indent width, and validate while you're at it.