XML Schema tutorial


May 28, 2021 09:00 XML Schema


Table of contents


XML Schema tutorial


XML Schema describes the structure of the XML document.

In this tutorial, you'll learn how to read and create the XML Schema language in your application, why XML Schema is more powerful than DTD, and how to use XML Schema in your application.

Start learning XML Schema now!

XML Schema instance

<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:element name="note">
<xs:complexType>
<xs:sequence>
<xs:element name="to" type="xs:string"/>
<xs:element name="from" type="xs:string"/>
<xs:element name="heading" type="xs:string"/>
<xs:element name="body" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>

</xs:schema>

XML Schema reference manual

In W3CSchool, we learn the full XML Schema element.

XML Schema reference manual