Pretty Printing XML
tidy is a command line tool to pretty print XML.
What is tidy?
It’s a very unslick util for tidying up HTML markup which gets the job done. It also has an XML mode, which is what is useful here. To install it on OS X, simply do
To pretty print
input.xml and save the output to
There are several command line options. For example, to change the case of tabs to uppercase: