Using XML Validator: practical guide
Check that XML is well formed
A validator confirms the document follows XML's basic rules and points to the line where it stops making sense. Run it before you submit a feed, a sitemap or a configuration file.
Well formed is not the same as valid
Well formed means correct syntax: matching tags, one root element, quoted attributes and escaped special characters. Schema validity, meaning the right elements in the right places, is a separate check against a schema supplied by the system you are sending the file to.