Skip to content
MewixMewix

XML validator

Paste a document fragment or file contents. The browser parser either reports well-formed XML or surfaces the first parser error text (trimmed to about two hundred characters).

Updated by the Mewix team

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.

Will HTML pasted here validate?
Loose HTML often fails XML rules. Use an HTML-specific linter for web pages; keep this box for true XML payloads.