Validate, beautify or minify XML.
The XML formatter checks that an XML document is well-formed and rewrites it with consistent indentation, one element per line. Switch to minify to remove the whitespace between elements and the comments.
Errors are reported with the parser's message, so you can find a missing closing tag or an unescaped & in sitemaps, RSS feeds, SVG files, SOAP messages and configuration files.
Malformed XML is reported with the parser error.
2 spaces, 4 spaces or tabs.
Remove whitespace and comments.
XML declaration, doctype, CDATA and namespaces are kept.
Every tag is closed, tags are nested correctly, attributes are quoted and special characters like & are escaped.
No, it checks that the XML is well-formed, not that it matches an XSD or DTD.
Text is trimmed when beautifying. Use CDATA for content where whitespace matters.
Yes, any XML document works.