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>

 

Order a unique copy of this paper
(550 words)

Approximate price: $22

Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

We value our customers and so we ensure that what we do is 100% original..
With us you are guaranteed of quality work done by our qualified experts.Your information and everything that you do with us is kept completely confidential.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

The Product ordered is guaranteed to be original. Orders are checked by the most advanced anti-plagiarism software in the market to assure that the Product is 100% original. The Company has a zero tolerance policy for plagiarism.

Read more

Free-revision policy

The Free Revision policy is a courtesy service that the Company provides to help ensure Customer’s total satisfaction with the completed Order. To receive free revision the Company requires that the Customer provide the request within fourteen (14) days from the first completion date and within a period of thirty (30) days for dissertations.

Read more

Privacy policy

The Company is committed to protect the privacy of the Customer and it will never resell or share any of Customer’s personal information, including credit card data, with any third party. All the online transactions are processed through the secure and reliable online payment systems.

Read more

Fair-cooperation guarantee

By placing an order with us, you agree to the service we provide. We will endear to do all that it takes to deliver a comprehensive paper as per your requirements. We also count on your cooperation to ensure that we deliver on this mandate.

Read more

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency