Home >Online Product Documentation >Table of Contents >Description of Sample XML Schema
Description of Sample XML Schema
Suppose you want to define an XML Schema that defines book, magazine, and newsletter elements. The type of each of these elements is PublicationType. The XML Schema defines the PublicationType complexType. An element that is a PublicationType has the following description:
- The
genre attribute specifies the style of the publication. That is, whether it is a book, magazine, or newsletter. - There is always exactly one
title element. - The
subtitle element is optional. - There must be at least one
author element and there can be more. Each author element contains one first-name element and one last-name element. - Of the following three elements, exactly one must always be present:
ISBNnumberPUBnumberLOCnumber
- The elements must be in the order specified in this list.
The following topics in this section describe how to define this XML Schema using the Diagram tab of the XML Schema Editor.