I have several medium sized (1 MB) xml file that I frequently need to format. (I am getting them from a program that outputs them with no indentation).
I am looking for someway to quickly and easily format the files locally on my machine.
I have been using http://xmlindent.com/ to format them but
- I don’t like uploading my content to a third party site
- its a pain in the butt to upload the file, copy it from the page, open a new file paste the results in …
I know that eclipse has a xml formatter but it is choking because the file size is too big.
My primary editor for xml is vim.
The best solution I found was to use Notepad++. Under:
Note: This method will only work under Windows Vista & Windows 7 when Notepad++ is being run as admin (right click -> Run as administrator). When being run as a regular user it will silently fail.