Inspectors

XML Validator

Paste XML and check if it's well-formed — proper nesting, closed tags, valid attributes, correct entity usage. The validator reports errors with line and column numbers so you can find and fix issues quickly. Optionally, provide an XSD schema to validate the XML against — checking that elements, attributes, and types match the schema definition.

XML Validator — Validate XML well-formedness with line numbers; check elements against an XSD

What it does

  • Validates XML well-formedness (proper nesting, closed tags, entities)
  • Reports errors with line and column numbers
  • Optional XSD schema validation — checks elements, attributes, and types
  • Handles namespaces and CDATA sections
  • Shows a success message with element count when XML is valid

Use cases

  • Debugging an XML parsing error in a SOAP API response
  • Validating an SVG or RSS feed before publishing
  • Checking an XML config file against an XSD schema
  • Verifying that generated XML is well-formed before sending it

How it works

1

Paste your XML into the input pane

2

Optionally paste an XSD schema for schema validation

3

The validator checks well-formedness and schema compliance

4

Errors are reported with line numbers and descriptions

Frequently asked questions

1What's the difference between well-formedness and schema validation?

Well-formedness checks XML syntax rules — tags are closed, properly nested, attributes are quoted. Schema validation (XSD) checks that the XML follows a specific structure — required elements are present, values match expected types, element order is correct. Well-formedness is required; schema validation is optional.

2What XSD version does it support?

The validator supports XSD 1.0, which is the most widely implemented version. XSD 1.1 features (assertions, conditional type assignment) are not supported.

3Does it handle DTD validation?

The tool focuses on well-formedness and XSD schema validation. DTD (Document Type Definition) validation is not supported — XSD is the modern standard for XML schema validation.

Related tools

Use XML Validator offline in Devinity

All 95 tools run locally on your Mac. No internet required, no data sent to servers.

Download Devinity →