Solutions Log

Reformat and reindent an XML file

1 min read
xml

This is easy to accomplish with xmllint and a shell one-liner:

xmllint --format inputfile.xml > outputfile.xml