Intro xml authoring | Computer Science homework help

Document must look like the screenshot.
 
Benjamin needs your help with a document that lists some of Map Finds For You’s map products.
 
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 )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, enter your name and today’s date in the comment section of the file, and then save the file as products.xml .
 
2. In the products.xml le, insert an internal DTD for the root element products directly after the comment section and before the opening tag.
 
3. Within the internal DTD, declare the following items:
a. The products element, containing at least one occurrence of the child element product
b. The product element, containing five child elements in the sequence name , versionDate , desc , an optional isbn , and price
c. The name , versionDate , desc , isbn , and price elements, each containing parsed character data
 
4. Add the following attribute declarations to the product file:
a. For the name element, a required pid attribute as an ID
b. For the name element, a required category attribute equal to historical , state , or parks
c. For the versionDate element, an optional surveyDate attribute containing the date of the survey
d. For the price element, an optional format attribute equal to either flat or raised , with a default of flat
e. For the price element, a required media attribute equal to either paper or electronic
 
5. On the same line as the format attribute definition, insert a comment containing the text format default is flat .
 
6. Save your changes to the products.xml file, and then use Exchanger XML Editor or another XML tool to verify that the document is well formed.
 
7. Validate the document. If necessary, correct errors one at a time and revalidate until the document is valid.
 
prodtxt.xml Document
<?xml version=”1.0″ encoding=”UTF-8″ standalone=”no” ?>
<!–
   New Perspectives on XML
   Tutorial 2
   Review Assignments
 
   List of maps sold by Map Finds For You
   Author:   
   Date:      
 
   Filename:         products.xml
–>
 
<products>
   <product>
      <name pid=”HM1002P” category=”historical”>North America 1849</name>
      <versionDate surveyDate=”1849″>1968</versionDate>     
      <desc>This historical map of North America includes part of the West India Islands. 
      Old style colors are used to outline boundaries of the United States. 30 x 38 inches. 
      </desc>
      <price media=”electronic”>$38.00</price>
   </product>
   <product>
      <name pid=”HM3042P” category=”historical”>Lewis and Clark: A Legacy of Science</name>
      <versionDate>2003</versionDate>
      <desc>This Lewis and Clark poster commemorating the bicentennial of this incredible 
      journey of discovery features two maps in parallel view: above is a beautiful reproduction 
      of the 1814 Lewis and Clark map; also included is the same geographic area depicted with 
      current remote sensing technology in a colorful image of the American landscape. 42 x 44.5 inches.
      </desc>
      <isbn>978-0-607-99721-7</isbn>
      <price format=”flat” media=”paper”>$5.50</price>
   </product>
   <product>
      <name pid=”SM012P” category=”state”>United States: Wisconsin</name>
      <versionDate>1968</versionDate>
      <desc>This state map of Wisconsin outlines borders of the state and its counties.  Some
      topography is included.  46 x 45 inches.
      </desc>
      <isbn>978-0-607-59264-1</isbn>
      <price format=”flat” media=”paper”>$1.00</price>
   </product>
   <product>
      <name pid=”PL24L” category=”parks”>Canyonlands National Park</name>
      <versionDate></versionDate>
      <desc>National park map of Canyonlands National Park, which is the the largest national 
      park in Utah.  Some shaded relief; contours included. 45 x 60 inches.
      </desc>
      <isbn>978-0-607-84777-2</isbn>
      <price format=”flat” media=”paper”>$12.00</price>
   </product>
   <product>
      <name pid=”HM240P” category=”historical”>Antietam: Historical Map of the Battlefield of Antietam</name>
      <versionDate>1904</versionDate>
      <desc>The National Geospatial-Intelligence Agency (NGA) created these attractive and 
      informative posters to celebrate the legacy of battlefield cartography, photo interpretation, 
      and imagery analysis. This is one of a series of 14 maps based on surveys of the Antietam 
      Battlefield showing military positions during the course of the battle. These maps were 
      created in response to a congressional mandate to document significant Civil War 
      battlefields. The purpose was to gain a greater understanding of the movement of troop, 
      artillery, and cavalry units as they maneuvered to win an advantage. 36 x 24 inches.
      </desc>
      <price format=”flat” media=”paper”>$12.00</price>
   </product>
   <product>
      <name pid=”HM250P” category=”historical”>Normandy Air Campaign</name>
      <versionDate>1945</versionDate>
      <desc>The National Geospatial-Intelligence Agency (NGA) created these attractive and 
      informative posters to celebrate the legacy of battlefield cartography, photo interpretation, 
      and imagery analysis. This map shows fighter plane patrol routes in assault areas. The map 
      legend identifies flight routes across the English Channel, positions of naval ships, 
      assault beaches, and more. Foreground image is of P47s flying in patrol formation during 
      the invasion. 36.5 x 24.5 inches.
      </desc>
      <price format=”flat” media=”paper”>$10.00</price>
   </product>
 
</products>
 

What Students Are Saying About Us

.......... Customer ID: 12*** | Rating: ⭐⭐⭐⭐⭐
"Honestly, I was afraid to send my paper to you, but splendidwritings.com proved they are a trustworthy service. My essay was done in less than a day, and I received a brilliant piece. I didn’t even believe it was my essay at first 🙂 Great job, thank you!"

.......... Customer ID: 14***| Rating: ⭐⭐⭐⭐⭐
"The company has some nice prices and good content. I ordered a term paper here and got a very good one. I'll keep ordering from this website."

"Order a Custom Paper on Similar Assignment! No Plagiarism! Enjoy 20% Discount"