XML Validator

Free

Validate XML documents against schema or DTD

About XML Validator

XML still powers SOAP services, RSS feeds, sitemaps, Android layouts, and countless configuration formats, and a single unbalanced tag or stray ampersand can make a whole document unparseable. The XML Validator from ToolHub by Codaiman lets you confirm a document is well formed, and optionally valid against a schema or DTD, without setting up a local parser or toolchain.

Drop in your XML and the validator checks that elements are properly nested and closed, attributes are quoted, and entities are escaped, surfacing any violations with helpful detail. When you supply a schema or DTD, it goes further and verifies the document conforms to those rules. Everything happens in the browser with no account required, giving you instant feedback while keeping your markup private and on your own machine.

Common uses

  • Verifying an XML sitemap or RSS feed is well formed before submitting it to search engines or aggregators
  • Checking a SOAP request or response while debugging a legacy web service integration
  • Validating a configuration file such as a Maven pom.xml or Spring context after editing
  • Confirming exported data conforms to a partner's XSD before sending it upstream
  • Catching unescaped characters and mismatched tags in hand-edited XML

How to use

  1. 1

    Configure options

    Set your preferences using the options panel below.

  2. 2

    Click Generate

    Click the process button to generate your result instantly.

  3. 3

    Copy or download

    Copy the result to clipboard or download it directly to your device.

Why ToolHub?

  • Instant error detection
  • Detailed error messages
  • Standards compliant

FAQ

Can it validate against my own XSD or DTD?

Yes. Provide your schema or DTD and the tool checks the document for conformance, not just well-formedness.

What is the difference between well-formed and valid?

Well-formed means the XML follows basic syntax rules. Valid means it also matches the structure defined by a schema or DTD. This tool can check both.

Does it support XML namespaces?

Yes, namespaced documents are parsed and validated, including prefixed elements and attributes.

Is my document sent to a server?

No. Validation runs locally in your browser, so your XML and any schema stay private.

Can I use XML Validator on mobile?

Yes — ToolHub is fully responsive and works on iPhone, Android, tablets and all modern browsers. No app install needed.