When inspecting minified SOAP envelopes, SAML assertions, Maven pom.xml files, or RSS/Atom sitemaps, single-line XML is difficult to read. This tool first checks whether the input satisfies W3C XML 1.0 well-formedness rules using XMLValidator, flagging structural mistakes such as unclosed elements, mismatched closing tags, or unquoted attribute values. Once validated, it applies regex-based formatting rules to place element boundaries onto separate indented lines.
For example, compact input like:
<?xml version="1.0"?><catalog><book id="b1"><title>XML Guide</title></book></catalog>
is expanded into nested lines:
<?xml version="1.0"?>
<catalog>
<book id="b1">
<title>XML Guide</title>
</book>
</catalog>
Processing runs locally in your browser so you can quickly inspect structural hierarchy before copying or downloading the formatted result.