Insert a comment containing the text format default is ?at

Assignment Help Web Project
Reference no: EM131505214

Assignment: Intro XML Authoring

Document must look like the screenshot.

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

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 ?le from the xml02 review folder provided with your Data Files, enter your name and today's date in the comment section of the ?le, and then save the ?le as products.xml .

2. In the products.xml file, 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 ?le:

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 de?nition, insert a comment containing the text format default is ?at.

6. Save your changes to the products.xml ?le, 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.

Attachment:- Tree structure of Benjamins XML Document.rar

Reference no: EM131505214

Questions Cloud

How is unemployment in the united states measured : How is unemployment in the United States measured? What aspects of this phenomenon does the unemployment rate measure and what aspects does it fail to capture?
Define religion and cult : In a one to two page essay, address the questions below. Your essay should be double spaced and use 12 point Times New Roman font (black).
Write a business plan for starting an business : Task: Write a Business Plan for starting an Engineering-related business of your choice.
Discuss the problem that an insurance company faces : Discuss the problem that an insurance company faces in setting the premium for car insurance.
Insert a comment containing the text format default is ?at : Assignment: Intro XML Authoring- On the same line as the format attribute de?nition, insert a comment containing the text format default is ?at.
Determine the surveys credibility : What kind of critical questions do you have to ask in order to determine the surveys credibility?
Compare the teachings of confucius and aristotle : Compare the teachings of Confucius and Aristotle on what constitutes virtue or good ethical character and conduct.
Different approaches to the measurements of need : Explain the four different approaches to the measurements of need. Provide an example of a need in your life. What type of need is it?
What is the pooling equilibrium : Suppose that high-productivity workers have a marginal product of £5,000, low-productivity ones of £2,000. What will the firm pay in the pooling equilibrium?

Reviews

Write a Review

Web Project Questions & Answers

  Evaluating an ecommerce website

Create a check list that contains key point for evaluating an ecommerce website - Write a short, reflective report about website

  Gpc and runtime magic quotes

Create a script that lets you know whether Zeus or Helios has the GPC and Runtime Magic Quotes turned on or off. The output should have appropriate labels that define what output signified and should display 'ON' or 'OFF' depending on the setting.

  Creating functions through conditional operator

Use the conditional operator and the cal_days_in_month function, determine the number of days in the current month and output to browser whether it is normal month or a leap month.

  Web development projects with database

Since the vast majority of web-development projects involve a database, do you think that computational activities should be performed there, or do you think they belong in the XML page or stylesheet?

  Comparing shelf software packages

Required assistance with comparing and contrasting two main off the shelf software packages that could be implemented in an organization.

  Web based scams

Web phishing, pharming and vishing are popular web based scams. Talk about currently used tools and recommended measures to defeat this kind of attacks efficiently?

  Explanation of contextual links

The most powerful hypertext capabilities is the the contextual link. Wikipedia . com is a great example of a site that utilizes contextual links.

  How architectural and protocol changes occur

Discuss how architectural and protocol changes happen, the administrative organization that oversees the technical development of the Internet,

  Traditional approaches for training professionals

Webinars and other web conferencing techniques have proved most beneficial for the provision of affordable quality corporate training.

  Internet for business

Discuss how can a business use the Internet and give at least three examples with web links demonstrating your answer.

  It influences the behavior of organizations

Information technology influences the behavior of organizations. Name one effect of Information technology implementation and long-term usage you suppose having a positive contribution and one having a negative consequence.

  Importance of a guided navigation system

Explain the use and importance of a guided navigation system and shopping cart for a website designed for e-commerce and business purpose.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd