Is there a free XML formatting (indent) tool available where I can past an XML string and have it formatted so I can read the XML document correctly?
Thanks
Edit ~ I am using XML Notepad on Windows XP.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I believe that Notepad++ has this feature.
Edit (for newer versions)
Install the ‘XML Tools’ plugin (Menu Plugins, Plugin Manager)
Then run: Menu Plugins, Xml Tools, Pretty Print (XML only – with line breaks)
Original answer (for older versions of Notepad++)
Notepad++ menu: TextFX -> HTML Tidy -> Tidy: Reindent XML
This feature however wraps XMLs and that makes it look ‘unclean’. To have no wrap,
C:\Program Files\Notepad++\plugins\Config\tidy\TIDYCFG.INI,[Tidy: Reindent XML]and addwrap:0so that it looks like this: