Well-formed vs valid XML
Well-formed means tags close, attributes quote correctly, and one root element wraps the rest. Valid XML additionally satisfies a schema—XSD, DTD, or Relax NG—which this tool never loads. You get a fast syntax gate before feeding data to APIs or transforms.
Implementation uses DOMParser with MIME type application/xml. If the browser inserts a parsererror node, its text (first two hundred characters) becomes the failure message.
Finding the syntax error line
Browser error text sometimes includes line numbers, though formatting varies by engine. Split large files in your editor if the snippet is vague; re-run the checker on the smaller chunk once you narrow the region.