The Definition of Your Basic Data Records
To perform any database operations, you first need a database, and before you have a database, you must have a definition of a record of that database. For the purposes of this hour, you'll be defining a catalog of books. Your basic <Book> data object will consist of a complex node describing the author, a complex node describing the publisher, and simple nodes with the title, ISBN, an ID number used by the publisher, the date of publication, and the price of the book. The <Book> nodes will satisfy the XML definition shown in Listing 9.1.
Note
An entry in a database is known as a record, and all records must satisfy the definition of the record. Since your XML data files consist of nodes that satisfy ...
Get Sams Teach Yourself XML in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.