Q&A

Q1: Why have two separate files to describe the books?
A1: Although book buyers are interested in information, they're not interested in all the information about all the books. In the interest of speed, the additional information isn't loaded until the user requests it.
Q2: Why should I define an additional data type for the books purchased?
A2: If a book has been purchased, you can assume that the seller wants to retain some information about that book. Therefore, rather than reuse the larger data type for a <Book>, use a subset that contains all the information that's needed.

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.