How to use
This tool checks XML well‑formedness (syntax). It does not validate against XSD/DTD schemas.
- Paste your XML into the input box.
- Click Validate (or Format/Minify).
- If valid, the output shows a normalized version (and optional formatting).
- If invalid, the error box shows the parser message (copy it when reporting issues).
FAQ
Does this validate XML against an XSD schema?
No. It checks XML well‑formedness (syntax) only; XSD/DTD schema validation isn’t included.
Is my XML uploaded to a server?
No. Validation runs in your browser and the tool does not make network requests.
Why do I see a “parsererror” message?
That’s the browser’s XML parser reporting a syntax problem (like mismatched tags or invalid characters). Fix the XML and validate again.
Will formatting change the XML content?
It normalizes whitespace between tags and indentation for readability. Text inside elements is preserved, but exact whitespace may not be identical.
Can it keep the XML declaration (<?xml ...?>) and DOCTYPE?
Yes. Enable “Keep XML declaration / DOCTYPE” to carry them into formatted/minified output when present in the input.
Why is the XML declaration missing after formatting?
Many browser serializers omit it by default; this tool re-adds it only if it existed in your input and the keep option is enabled.
What’s the difference between “Validate”, “Format”, and “Minify”?
Validate checks syntax; Format pretty-prints with indentation; Minify removes whitespace between tags for compact output.