The Structure of the <Catalog> Database

You've used a database of books under the <Catalog> XML tag in previous hours. That same tag will be used again, but now the data will be of a slightly different form and a schema will be used to describe it.

The entries in the <Catalog> database will all be books, and the <Book> entries will have the components shown in Table 20.1.

Table 20.1. The Data Components of the Online <Catalog> Database
Tag nameWhat it containsData type
<Title>The title of the bookText
<Subject>A list of keywords about the topics covered in thebookText
<Name>The name of the authorText
<Address>The address of theauthorText
<City>The city of residenceText
<State>The state of residenceText
<PostalCode>The postal code of residence ...

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.