Write a document type definition for xml file, Programming Languages

Assignment Help:

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%.


Related Discussions:- Write a document type definition for xml file

Example of undetermined coefficients, Example :  Solve the following differ...

Example :  Solve the following differential equation. y (3)   -  12 y''+48 y' + 64 y = 12 - 32 e -8t + 2 e 4t Solution :    We first require the complementary solution

Programme for create the class in the karel++ , Create the class Robot desc...

Create the class Robot described in the Karel++ book. Description: The Robot class described in the Karel++ text is a derived class of ur_Robot. Create class Robot as a d

Program to built book recommendation system, 1 Problem Description The...

1 Problem Description The task of the assignment is to build a book recommendation system for Auer Libraries. The system is to be implemented in Prolog and as the owners of t

Calculate the appropriate weight for each query term, 1-Create ir3.py based...

1-Create ir3.py based on ir2.py 2-Repeatedly prompt the user for a query (if they enter "q", then quit) 3-Find the terms in the query, and calculate the appropriate weight fo

Write and test a simple perl program on the linux platform, Write and test ...

Write and test a simple perl program on the linux platform.  You may use any linux system you wish, including the Suse linux installed in the lab. Activities. Note:  to r

Write use case description for the process, The following is the process an...

The following is the process an account holder of eBroker, a discount online brokerage firm, uses to sell stocks.  The user first logs in by entering the username and password.

Program for nuclear reactor - embedded systems, Implement the "Nuclear Reac...

Implement the "Nuclear Reactor" example using the following:  An ISR triggered by a button press  A task to update the temperatures  A semaphore to communicate between the ISR and

Write c sharp application to read a data, A number of simple student record...

A number of simple student records are written to a text file. The format of some typical linesshould be - Task (1): Using a text editor, create a file with 10 such reco

Count no of files, Normal 0 false false false EN-US X...

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Determine that the processes are iterative or recursive, Each of the follow...

Each of the following two procedures defines a method for adding two positive integers in  terms of the procedures inc, which increments its argument by 1, and dec, which decrement

Write Your Message!

Captcha
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