Easily pretty print XML
Macs come with libxml2 which inclues a tool called xmllint. You can use this to format your xml with ease. The tool does not have a graphical interface, so you'll need to fire up terminal.

Example 1. Format a file

xmllint --format - &lt; file_to_format.xml &gt; formatted_output.xml


Example 2. Format xml from clipboard

pbpaste | xmllint --format - &gt; formatted_output.xml