Question: Benjamin needs your help with a document that lists some of Map Finds For You's map products. Figure 2-32 shows the tree structure of Benjamin's





Benjamin needs your help with a document that lists some of Map Finds For You's map products. Figure 2-32 shows the tree structure of Benjamin's XML document. U 0 Figure 2-3:2 Structure of the products product desc isbn The document contains a root element named products with one or more occurrences of the product element containing information on map products. The product element contains five child elements- name, versionDate, desc, an optional isbn, and price. The name element stores the name of the prod- uct and supports two attributes-pid, the ID number of the product; and category, the type of product (historical, state, or parks). The versionDate element also supports an optional surveyDate attribute that indicates the date of the map survey, if known. The desc element stores a description of the product. The optional isbn element stores the ISBN for the product. The price element stores the name of the product and supports two attributes-format, the format of the product (flat or raised) with a default of flat; and media, the media type of the product (paper or electronic). For this document, Benjamin wants to enforce a document structure to ensure that information recorded in the document is valid. Therefore, your task will be to create the DTD for the document. Complete the following: 1. Using your text editor, open the prodtxt.xml file from the xml02 review folder provided with your Data Files, enter your name and today's date in the comment section of the file, and then save the file as products.xml. comment section and before the opening
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
