XML Schema Validator

This service lets you validate XML documents such as XHTML against the appropriate schemas. It performs a more accurate validation than the W3C validator.

You can validate XML documents by URL, by file upload or by direct input. Furthermore, you can validate fragments of XML documents. You can easily validate the page that is currently displayed in your browser with this bookmarklet.

This software is built around the System.Xml and System.Xml.Schema namespaces in .NET Framework 2.0. It is written in Visual Basic .NET.

If you send XHTML documents as text/html, you should also test them in XHTML Proxy.

Validate by URL
Address:
Schema:
Encoding:
HTML compatibility:
Validate by file upload
File:
Schema:
Encoding:
HTML compatibility:
Validate by direct input
Source:
Schema:
HTML compatibility:

Fragment validation is temporarily not available.

Options

Schema

You can select a schema manually or let the validator detect it. Automatic schema detection tries to determine the appropriate schema from the xsi:schemaLocation attribute and the public and system identifiers of the document type declaration. This validator does not download any DTD or schema files, but relies on its own ones.

HTML compatibility

Checks some of the HTML compatibility guidelines. These tests are currently performed:

Requirements

Known problems

Feedback

Don't hesitate to send suggestions and comments to Christoph Schneegans (Christoph@Schneegans.de).

Advantages

The XML support of the W3C validator and its clones such as Validome or the WDG HTML validator suffers from several limitations.

This validator also performs a thorough check of language tags such as de-DE or en-US according to BCP 47.

Björn Höhrmann has prepared some interesting tests. I've incorporated some of them in my own test case collection.

Furthermore, this validator checks for element prohibitions, that can't be expressed in DTDs or schemas, and some of the HTML Compatibility Guidelines.

Schema sources

The following schemas are used:

Other XML and XHTML validation tools