I use emacs to edit my xml files (nxml-mode) and the files were generated by machine don’t have any pretty formatting of the tags.
I have searched for pretty printing the entire file with indentation and saving it, but wasn’t able to find an automatic way.
Is there a way? Or atleast some editor on linux which can do it.
I use nXML mode for editing and Tidy when I want to format and indent XML or HTML. There is also an Emacs interface to Tidy.