Paste XML and click Format to indent it, Minify to strip the whitespace between tags, or Validate to check that it is well-formed. Validation uses the browser’s built-in XML parser, so the error message (with a line number where the browser provides one) comes from the same engine your front-end code would use.
The formatter keeps the XML declaration, DOCTYPE, comments, CDATA sections and processing instructions as they are. Elements that contain only a short text value stay on one line, for example <name>Ada</name>. Attribute values are never modified.
This checks well-formedness, not validity against an XSD or DTD. Whitespace inside text nodes that mixes text and child elements may be trimmed when formatting, so do not use it on documents where that whitespace is significant. Nothing leaves your browser.