Toolbox for developers / Online XML validator

XML Schema Validator

This tool allows you to validate that a XML conforms to the definition described by a XML Schema (XSD).

Fill in the editors below and it will automatically check if your XML conforms to XSD.
You can see the user guide to help you to use this online XML Validator.



User guide

It is very simple to validate your xml:

Step 1: You must fill "XML" editor. You can Drag and drop a XML file, click on "Browse a XML file" or directly type in the editor.

Step 2: It is analogous to step 1 (except that it concerns the "XML Schema" editor).

Step 3: As soon as the editors are filled, the tool checks if the XML conforms to the XSD. If errors are detected then they are displayed below the editors, else a success message is displayed.

XSD user guide

Online XSD Validator

This Online XML Schema Validator tool allows you to validate that your XML conforms to the specified schema.

If your XML document is not valid, the errors will be displayed, you will be able to make the necessary corrections.

All treatments are done locally directly in the browser, your documents are not sent to our server.

This tool uses xml.js library. It is an Emscripten port of libxml2's xmllint command.

What is XML Schema?

The XML Schema definition language (XSD) allows to define the structure and data types for XML documents. It contains a set of rules to which an XML document must conform in order to be valid. It is the current standard schema language, it is a recommendation of the World Wide Web Consortium (W3C). It is an alternative to Document type definition (DTD).

XSD defines:

  • The elements that can appear in a document
  • The attributes that can appear in a element
  • The child elements
  • The order of child elements
  • The data types for elements and attributes
  • The fixed values for elements and attributes

XML Schema can be used by developers to check XML document, for example to verify a SOAP response. If the XML document does not conform to the XML schema, the SOAP response is wrong.

XML Schema can be complicated to understand and use for a novice (especially for a non-developer), the spec is very long. The XML schema generators from xml can help to create a Schema XML.

XML Schema uses XML syntax, a XSD is a XML document! This avoids having to use another format. XSD Example

<?xml version="1.0"?>
<xs:schema xmlns:xs="">
<xs:element name="book">
      <xs:element name="author" type="xs:string"/>
      <xs:element name="title" type="xs:string"/>
      <xs:element name="price" type="xs:float"/>
XML Example conforms to the XML Schema
	<author>Isaac Asimov</author>
	<title>I, Robot</title>

XSD supports several primitive data types: boolean, string, decimal, float, double, date, dateTime, base64Binary, ... Then, it is possible to create complex types.

You can report a bug or give feedback by adding a comment (below) or by clicking "Contact me" link (at the top right hand corner of the page).


Disclaimer: The tools are provided "as is", without warranty of any kind, either express or implied.
Any links to third-party website or software available on this website are provided "as is",
without warranty of any kind, either express or implied and are to be used at your own risk.