DEVtoy
语言 · 简体中文

XML 美化/压缩

使用可配置缩进格式化或压缩 XML。不支持 DTD 和自定义实体。

使用方法

  1. 粘贴输入内容或加载下方示例。
  2. 调整选项后点击“格式化 XML”。
  3. 检查结果,然后复制或下载。

无需上传,无需账户,处理完全在浏览器内完成。

输入示例
<?xml version="1.0" encoding="UTF-8"?><catalog currency="USD"><!-- Featured books --><book id="bk101" available="true"><title>XML Developer’s Guide</title><authors><author>Ada</author><author>Grace</author></authors><price>44.95</price><description><![CDATA[Examples with <tags> & attributes.]]></description></book><book id="bk102" available="false"><title>Midnight Rain</title><price>5.95</price><tags/></book></catalog>

相关工具