Format and validate XML documents with consistent indentation.
This tool runs entirely in your browser. The file you choose is never uploaded to a server. Free, with no account required.
It runs the document through the browser's own XML parser and reports the parser's message when it fails. Turn it off if you are formatting a fragment rather than a complete document.
An element whose entire content is text stays on one line. Mixed content such as <p>Hello <b>world</b></p> is broken across lines, which adds whitespace between the words. That is harmless for data XML but visible in XHTML, so the tool says so rather than pretending it did not happen.
Yes, during minification. Those four elements — pre, textarea, script and style — keep their whitespace exactly.
No. It checks well-formedness only. Schema or DTD validation is a different job and is not attempted here.