Indent and validate XML while preserving document order, attributes and comments.
Ctrl + Enter to run
Indenting XML exposes the element hierarchy, which is the whole point of the format and completely invisible in the single-line documents most SOAP endpoints and export tools produce. Attribute-heavy markup in particular becomes readable only once it is broken across lines.
Formatting also surfaces structural errors — an unclosed tag or a mismatched namespace prefix stops the parse and is reported where it happens. If you are comparing two XML documents, format both first, or the diff will be dominated by line-break differences rather than content.