Aug 23, 2011

Tidy up a messy XML

Notepad++ ( download here) can help a lot in re-format or tidy up an messy XML

From 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\tidy\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
Enjoy XML everyone !

No comments:

Post a Comment