|
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 has the following description:
l The genre attribute specifies the style of the publication. That is, whether it is a book, magazine, or newsletter.
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.
The following topics in this section describe how to define this XML Schema using the Diagram tab of the XML Schema Editor. |