How to use the xml formatter
- Paste your XML.
- Choose pretty print or minify.
- Fix any reported error, then copy the result.
Well-formed XML
Every opening tag needs a matching closing tag (or must close itself like <br/>), tags must nest correctly, and there must be exactly one root element. The formatter checks these rules first and tells you which tag broke them.
Examples
<a> <b>1</b> </a>
Line 1: </a> doesn’t match the open tag <b>