The Eclipse web tool platform includes an XML editor that can reformat XML documents. It is not the best XML editor, nor is it formatting as custom as some other tools, but it is free and easy to install, as it is part of the top-level Eclipse project, so you should try and see your needs.
source share