I keep forgetting how to format and indent xml from the command line. The tool xmllint does a fine job of doing just that, which has saved me numerous times whilst working with sports results. So. Much. Data.

Running

xmllint --format<file>

will re-format and re-indent the xml in the input file, and check it for various errors while doing it.