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>

相關工具