Format/prettify xml

I expected xmledit to contain some shortcut for formatting or prettifying XML, but couldn't find any such feature.

So I just quickly copied in one I found in http://vim.wikia.com/wiki/Pretty-formatting_XML

Note that I've never done any vimscript before, this is just copying stuff in :8ball: