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
contains the following:
- The
genre
attribute specifies the style of the publication. - 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:
ISBNnumber
PUBnumber
LOCnumber
- The elements must be in the order specified in this list.