An xml pretty printer.

usage:

just pipe your output into xmlpretty

echo '' | xmlpretty

specify indent level with the first param

echo '' | xmlpretty 2