免费的XML格式化工具 [英] Free XML Formatting tool
问题描述
是否有一个免费的XML格式化(缩进)工具,我可以在其中粘贴XML字符串并对其进行格式化,以便我可以正确读取XML文档?
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?
谢谢
编辑〜我在Windows XP上使用XML记事本.
Edit ~ I am using XML Notepad on Windows XP.
推荐答案
我相信 Notepad ++ 具有此功能.
编辑(适用于较新版本)
安装"XML工具"插件(菜单插件,插件管理器)
然后运行:菜单插件,Xml工具,漂亮打印(仅XML-带换行符)
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)
原始答案(适用于旧版本的Notepad ++)
Notepad ++菜单:TextFX-> HTML Tidy-> Tidy:重新插入XML
Notepad++ menu: TextFX -> HTML Tidy -> Tidy: Reindent XML
但是,此功能包装了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]
并添加wrap:0
,使它看起来像这样:
- open
C:\Program Files\Notepad++\plugins\Config\tidy\TIDYCFG.INI
, - find the entry
[Tidy: Reindent XML]
and addwrap:0
so that it looks like this:
[Tidy: Reindent XML]
input-xml: yes
indent:yes
wrap:0
这篇关于免费的XML格式化工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!