XML TutorialLesson 19Free preview
XML Schema
This lesson is part of XML · All levels
Summary
XML Schema (XSD) is a richer DTD substitute because it is written in XML format and supports data types such as integers, dates, and booleans. In addition to the structure, the Schema can set the range of values, maximum length, and number of appearances of the elements. Because of this capability, XSD became the standard of choice for describing modern XML data contracts.
Key points
- XML Schema uses the .xsd extension and is written in XML format
- XSD supports primitive data types such as xs:integer and xs:date
- XSD sets the order, number, and mandatory absence of elements
- The main components are xs:element, xs:attribute, and xs:sequence
- XSD is more rigorous and descriptive than DTD
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.