|
Home >Online Product Documentation >Table of Contents >Description of Sample XML Schema Description of Sample XML SchemaSuppose 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:
l The genre attribute specifies the style of the publication.
l There is always exactly one title element.
l The subtitle element is optional.
l 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.
l Of the following three elements, exactly one must always be present:
m ISBNnumber
m PUBnumber
m LOCnumber
l The elements must be in the order specified in this list.
|