Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask E-Commerce Expert

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

E-Commerce, Computer Science

  • Category:- E-Commerce
  • Reference No.:- M92313943

Have any Question?


Related Questions in E-Commerce

Mobile applications assignment - an ios recipe application

Mobile Applications Assignment - An iOS Recipe Application - Introduction - In this assignment, you will create a simple Recipe application for iOS using Xcode (Swift). This application allows users to view food recipes. ...

Secure electronic commerce assignment -part a -based on

Secure Electronic Commerce Assignment - Part A - Based on your practices in labs, develop an online e-commerce (shopping) system using html, javascript and php. You can assume any products for sales. Please create a fold ...

Purpose of the assessment with ulo mapping students are

Purpose of the assessment (with ULO Mapping) Students are required to design and develop four different Apps. Students will be able to: b. Apply Java programming concepts, models/architectures and patterns to Android app ...

Research and discuss html 5what are its main featureswhat

Research and discuss HTML 5. What are its main features? What resources are available to support it? Put it in your own words please.

Create testcase for given project first use piki design to

Create testcase for given project, first use piki design to do test case Want to do it like testcase one file and you can also get right information from saeed testcases Want to piki design all of it and informat like te ...

Assignment requirementsyour web site proposal and

Assignment Requirements Your web site proposal and presentation (Assignment 1) was accepted, subject to any feedback you may have received. You company has been asked to develop website you suggested and build the featur ...

Overviewassignment 2 asked you to build the front end of

Overview Assignment 2 asked you to build the front end of the assignment, now the client wants you to build the full eCommerce website to the point that orders can be made and stored in a spreadsheet. Requirements 1. Web ...

Assignment - creating dynamic websites and web-based

Assignment - CREATING DYNAMIC WEBSITES AND WEB-BASED APPLICATIONS - AN OVERVIEW This assignment is an overview of the concepts, technologies and design techniques required to build dynamic websites and web-based applicat ...

Mobile web application development assignment - android

Mobile Web Application Development Assignment - Android Apps Development Purpose of the assessment - Students are required to design and develop four different Apps. Apply Java programming concepts, models/architectures ...

Html - css assignments assignment 1 - internet programming

HTML - CSS Assignments Assignment 1 - Internet Programming   My grandfather, like many men who lived in rural America, owned a large machine shed where he stored tools, farm equipment, vehicles, lumber, and wonderful gad ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As