Write a document type definition for xml file, Programming Languages

XML Publishing. Consider the following relational data:

Products:

pid

Name

Price

Description

323

gizmo

22.99

great

233

gizmoplus

99.99

morefeatures

312

gadget

59.99

goodvalue

Stores:

Sid

Name

Phone

s282

Wiz

555-1234

s521

Econo-Wiz

555-6543

Sells:

Pid

Markup

sid

323

10%

s521

233

25%

s282

233

15%

s521

A. Use and submit a text file (.txt) to write your information for the following. You want to export this data into an XML file. Write a Document Type Definition (DTD)describing this structure for the XML file.

a. there is one root element called products

b. the products element contains a sequence of product sub-elements, one for each product in the database

c. each product element contains one name, one price, and one description sub-element, and a sequence of store sub-elements, one for each store that sells that product

d. eachstore element contains one name, one phone, and one markup sub-element.

B. At the bottom of your .txt file, use an underscore line (_________) to separate the answer to this question from B. above.

Assuming that you have an XML document with the structure given in A., write an XQuery expression that returns the names and prices of all products that are sold at least at one store with a markup of 25%.

Posted Date: 3/22/2013 1:30:39 AM | Location : United States







Related Discussions:- Write a document type definition for xml file, Assignment Help, Ask Question on Write a document type definition for xml file, Get Answer, Expert's Help, Write a document type definition for xml file Discussions

Write discussion on Write a document type definition for xml file
Your posts are moderated
Related Questions
In analytical geometry, a convex polygon can be represented by the Cartesian coordinates of its vertices, x and y. Assume such data of a polygon are stored in a file called "vertic

The following are required for this lesson: Complete the Project "Adding New Payments," which is the Karate Payments that includes the Adding New Payments, Deleting Payments,


You are to write a program that determines the day of the week for New Year's Day in the year 3000. To do this, you must create your own date class (MyDate) and use the following i

We will be assuming here that our roots are of the form, in this case, r 1,2 = l + mi If we take the first root we'll find the following solution. x l + m i It i

Add macros to MS word 2010 according to A PARTICULAR FORMAT

Given grammar Grammar M following: 1 - - > begin end 2 - - > 3 - - > 4 - - > ? 5 - - > Id : = ; 6 - - > read ( ) ; 7 - - > write ( )

Lennie McPherson, proprietor of Lennie''s Bail Bonds, needs to calculate the amount due for setting the bail. Lennie requires something of value as collateral, and his fee is 10%

1.  Use mathematical induction to prove Whenever n is a positive integer. 2.  Use loop invariant to prove that the program for computing the sum of 1,...,n is correct.

Assume that a video store employee works 50 hours. She gets paid $4.50 for the first 40 hours; she gets time-and-a half pay (1.5 times the regular pay rate) for the first five hour