XML格式化工具
格式化并美化XML文档。适用于SOAP、站点地图、RSS订阅源和配置文件。
如何使用本工具
- 1
Paste your XML into the text box (one line or many — minified XML works too).
- 2
Read the indented result that appears in the output panel below; it updates automatically as you type, with no button to press.
- 3
Select the formatted text in the output panel and copy it manually into your editor or file.
什么是XML格式化工具?
XML比JSON出现得更早,但至今仍广泛用于企业集成、RSS/Atom订阅源、站点地图和配置文件。本格式化工具会添加一致的缩进和换行,让深度嵌套的XML变得易于阅读。若要针对特定的XSD进行校验,则需要使用专门的XML校验器。
常见使用场景
Make a one-line SOAP response from a web service readable so you can trace which element holds a fault or value.
Re-indent a minified sitemap.xml or RSS/Atom feed before scanning it for missing or duplicated entries.
Tidy a hand-edited Maven pom.xml, Android layout, or Spring config so the nesting is obvious at a glance.
Pretty-print an XML API payload pulled from logs or a network capture for a quick visual review.
Turn an exported config blob (build files, .csproj, web.xml) into an indented form before diffing it against another version.
Format a snippet for a bug report or documentation so reviewers can follow the element hierarchy.
常见问题
我可以针对XSD进行校验吗?▼
带命名空间的XML怎么办?▼
相关工具
JWT解码器
即时解码JSON Web Token(JWT)。完全在你的浏览器中运行:令牌绝不会离开你的设备,可安全用于生产环境的密钥。
JSON格式化与校验工具
在线格式化、校验和压缩JSON。完全在你的浏览器中运行:你的数据永远不会离开你的设备。
Base64编码与解码工具
将字符串编码为Base64,或将Base64解码为文本。尊重你的隐私:全部在你的浏览器中运行。
URL编码与解码工具
将文本转换为URL安全的编码(百分号编码),或进行反向转换。适用于查询字符串、重定向和OAuth流程。
HTML实体编码与解码工具
将特殊字符转换为HTML实体(&、<等),或进行反向转换。适用于将文本安全地嵌入HTML。
CSS压缩工具
移除CSS中的注释、空白和不必要的字符,以减小文件体积。