Skip to main content
DevTools24

XML 格式化工具

格式化、验证和压缩 XML 文档。使用可配置缩进美化打印 XML。

XML - 技术详情

XML (Extensible Markup Language) is a markup language for encoding documents. Formatting XML with proper indentation makes it human-readable while minifying reduces file size.

命令行替代方案

# Format XML with xmllint
xmllint --format input.xml > formatted.xml

# Validate XML
xmllint --noout input.xml

参考

查看官方规范