ProAnswers.org

Any free XML formatting (indent) tool available?

Is there a free XML formatting (indent) tool available where I can paste an XML string and have it formatted so I can read the XML document correctly?

I believe that Notepad++ has this feature.

[b]Edit (for newer versions)[/b]
Install the "XML Tools" plugin (Menu Plugins, Plugin Manager)
Then run: Menu Plugins, Xml Tools, Pretty Print (XML only - with line breaks)



[b]Original answer (for older versions of Notepad++)[/b]



Notepad++ menu: TextFX -> HTML Tidy -> Tidy: Reindent XML



This feature however wraps XMLs and that makes it look 'unclean'. To have no wrap,




	open C:\Program Files\Notepad++\plugins\Config	idy\TIDYCFG.INI, 

	find the entry [Tidy: Reindent XML] and add wrap:0 so that it looks like this: 



	
		
			[Tidy: Reindent XML]
			input-xml: yes
			indent:yes
			wrap:0