Post History
How to pretty print XML in a shell? I have command-line tool which outputs XML in a single line, totally unreadable. I would like something to pipe this into, to turn it into human readable XML wi...
#1: Initial revision
Prettify XML in shell
How to pretty print XML in a shell? I have command-line tool which outputs XML in a single line, totally unreadable. I would like something to pipe this into, to turn it into human readable XML with newlines and indentation. So something like this: ```bash $ output-dirty-xml <outer><inner some="value">Hey there!</inner></outer> $ output-dirty-xml | prettify-xml <outer> <inner some="value">Hey there!</inner> </outer> ```