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

Phonebook entry, The first task is to extend the  NeoPhoneBookEntry and  Ne...

The first task is to extend the  NeoPhoneBookEntry and  NeoPhoneBook classes to accommodate for  four additional contact  details:  Ringtone,  Vibration Pattern,  Led Pattern  and

Small perl program, 1. use a small perl program and matching config file to...

1. use a small perl program and matching config file to retrieve and reformat the system time for a number of remote machines via snmp.  Readings should have a local timestamp for

Reader-writer problem, The reader-writer problem can be stated as follows: ...

The reader-writer problem can be stated as follows: A shared memory location can be concurrently read by any number of tasks, but when a task must write to the shared memory locati

Jsp - quiz, JSP QUIZ ASSIGNMENT SHOULD BE FUNCTIONAL ON ECLIPSE QUIZ HAS ...

JSP QUIZ ASSIGNMENT SHOULD BE FUNCTIONAL ON ECLIPSE QUIZ HAS TOTAL 20 QUESTIONS REGARDING VARIOUS CAPITALS OF COUNTRIES. WELCOME PAGE OFFERS USER TO ENTER HIS NAME. THEN USER C

Motion field matlab with quiver, how to get the HORIZONTAL motion field fro...

how to get the HORIZONTAL motion field from motion vectors matrices

Program for read minimum three command line arguments, 1. Write a program t...

1. Write a program that reads a minimum of three command line arguments and displays the program's results. a. Command Line arguments:  i. The first argument will be the program

Cobol, Need help with a cobol program.

Need help with a cobol program.

We need advancement in existing phonegap application, We need Advancement i...

We need Advancement in Existing PhoneGap Application We need a PhoneGap expert to aid us extend an existing PhoneGap application. The app works pulls data from a new website (de

Shell script print “gm/afternoon/evening”acc to system time, Normal 0 ...

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

Game programming, Companies divide their subtasks of game's development. Fo...

Companies divide their subtasks of game's development. For large complex games, the development team can vary in size from 20 to 100 or more members. The most represented are artis

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