Humanizing XML
XML is supposed to be human readable, so it can be quite the hair tearing ordeal when reading it if it is stripped of whitespaces. Those indents were taken out to speed up computer to computer transactions but you've got to read it now and you need some spaces and tabs in the mix. With a little setup you can cut through unindented XML like butter.
Ingredients
1 VI editor
1 Extensible stylesheet language transformation tool (xsltproc)
Install xsltproc on your system. I don't recall if it is installed with Mac OS X as I set this up a while back on my Mac. If you're in Cygwin country install the libxml2 and libxslt packages.
Create the following XML stylesheet file ...