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>

 

Premium Custom Essays
Calculate your paper price
Pages (550 words)
Approximate price: -

Why Work with Us

Top Quality and Well-Researched Papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

Professional and Experienced Academic Writers

We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.

Free Unlimited Revisions

If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.

Prompt Delivery and 100% Money-Back-Guarantee

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & Confidential

We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.

24/7 Customer Support

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.

Essays

Essay Writing Service

No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.

Admissions

Admission Essays & Business Writing Help

An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.

Reviews

Editing Support

Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.

Reviews

Revision Support

If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.