XML Validator

Check XML well-formedness with exact error line/column.

XML Input62 chars
click Validate to check

Related Tools

Frequently Asked Questions

What does "well-formed" mean for XML?

It means every tag is properly opened, closed, and nested, attributes are quoted, and there's exactly one root element — the baseline structural rules every XML document must follow.

Does this check against a schema (XSD/DTD)?

No — this checks well-formedness only. Validating against a specific schema is a separate, much narrower concern than general syntax correctness.

Why don't I get a line number for the error?

Browsers' native XML parsers don't expose a consistent line/column API — the raw parser error message is shown instead, which often mentions the nearby content.

Is my XML uploaded anywhere?

No — validation runs entirely in your browser via the native DOMParser.