Formatting
The validator answers one question: is this document well formed, with a single root? <note><to>Sam</to></note> returns Valid XML. It does not indent, it does not rewrite entities into the output, and it does not tell you whether the document matches a schema. There is no XSD and no DTD check beyond what well-formedness requires.
A broken tag fails with a line and a column. <a><b></a> is the sort of mismatch that names the line rather than saying “invalid” and stopping. Two roots, such as <a/><b/>, fail because a document needs exactly one root element. Plain text fails immediately: Odd socks in the dryer. is line 1, column 1, character O is not expected.
The formatter runs the same checks and then reprints the tree. Use this page when a reprint would hide the bytes you are trying to certify, and use the formatter when you want the indented copy after the check passes.
<note><to>Sam</to></note>
Valid XML
Valid XML is the whole result. A pretty reprint belongs on the formatter, where whitespace changes are the point.
No. It means well formed, with one root. Element names are not checked against an XSD or a DTD.
The error includes the line and column. <a><b></a> fails that way. The message comes from the parser, so the wording names the token that broke the document.
Text that does not start with a tag is not XML. Odd socks in the dryer. fails at line 1, column 1.
The success result is the words Valid XML. It does not echo the document, so it cannot change entities or whitespace.