Developer

XML Formatter

Pretty print compact XML markup with indentation.

All tools

XML

Output

<tools>
  <tool>
    <name>TULAKITO
  </name>
</tool>
</tools>

Frequently asked questions

Does XML formatting change the meaning of my document?
Pretty-printing inserts whitespace between elements, which is normally insignificant but can matter inside mixed-content elements where whitespace is part of the text. Avoid reformatting XML that uses xml:space="preserve".
Why does my XML say it's not well-formed?
XML requires exactly one root element, properly closed tags, quoted attribute values, and matching case in start and end tags. A single unclosed tag or stray ampersand will fail the well-formedness check.
What's the difference between well-formed and valid XML?
Well-formed means the syntax is correct, while valid means the document also matches a declared DTD or XSD schema. Every valid XML document is well-formed, but the reverse is not true.