XML Validator

❮ 前章へ 次章へ ❯

Use our XML validator to syntax-check your XML.

Well Formed XML Documents

An XML document with correct syntax is called "Well Formed".

The syntax rules were described in the previous chapters:

<?xml version="1.0" encoding="UTF-8"?>
<body>Don't forget me this weekend!</body>

XML Errors Will Stop You

Errors in XML documents will stop your XML applications.

The W3C XML specification states that a program should stop processing an XML document if it finds an error. The reason is that XML software should be small, fast, and compatible.

HTML browsers are allowed to display HTML documents with errors (like missing end tags).

With XML, errors are not allowed.

Syntax-Check Your XML

To help you syntax-check your XML, we have created an XML validator.

Try to syntax-check correct XML :

Try to syntax-check incorrect XML :

Try to syntax-check your own XML :

Valid XML Documents

A "well formed" XML document is not the same as a "valid" XML document.

A "valid" XML document must be well formed. In addition, it must conform to a document type definition.

There are two different document type definitions that can be used with XML:

A document type definition defines the rules and the legal elements and attributes for an XML document.

❮ 前章へ 次章へ ❯