The Data Form of a Purchased Item

When an item is marked for purchase, it will be entered into an XML file that's updated dynamically in response to the user's actions. The entries will be abbreviated versions of the book object and are described by the XML schema in Listing 20.5.

Listing 20.5 The Form of the Data Used to Represent a Purchased Item
 1: <?xml version="1.0"?> 2: <!-- This is an XML schema that corresponds to the 3: PurchasedBook data object which will be used 4: in the online bookstore project. The name of the file 5: is listing20-5.xml. --> 6: <Schema name="PurchasedBookDef" 7: xmlns="urn:schemas-microsoft-com:xml-data" 8: xmlns:dt="urn:schemas-microsoft-com:datatypes"> 9: <!-- These are the definitions of the base components ...

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.