I am trying to Translate a small book into an XML document. The book has the following structure,
Title
Acknowledgement
Copyright
Collaborating Members
Publishers name and address
Table of contents
Preface
Chapter (optional) and under chapter there are sections (must)
I am trying to decide among two options: Can I design schema document with one major tag and everything defined in it with strict sequence, such as,
<xsd:element name="theBook">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="bookTitle" type="xsd:string"/>
<xsd:element name="bookAck" type="xsd:string"/>
<!-- and so on -->
</xsd:sequence>
</xsd:complexType>
</xsd:element>
or can I just define them individually? Such as,
<xsd:element name="theBook">
</xsd:element>
<xsd:element name="bookTitle" type="xsd:string">
</xsd:element>