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

Mvc architecture, MVC Architecture Model/view/controller (MVC) is a program...

MVC Architecture Model/view/controller (MVC) is a program structure, currently regarded an executive design used in program technological innovation. The design isolates "domain lo

Implement a program that can draw graphs, 1. Implement a program where an e...

1. Implement a program where an ellipse follows the perimeter of the window. 2. Implement a program that can draw graphs, possibly following your plan from last week. Have it gr

Pattern matching program in xhtml, Part 1 Given the following Regular Exp...

Part 1 Given the following Regular Expressions, explain in detail the pattern accepted by each. Pay attention to all the characters being used. Your answers need not appear with

Cookies management with perl, One of the main strengths of the Perl program...

One of the main strengths of the Perl programming language are its powerful text manipulation features. In this assignment, you will put them to use for writing a Perl program that

Shell script to count characters, Normal 0 false false fals...

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

Python , Python Programming hmw help!! Write a program that ask the user to...

Python Programming hmw help!! Write a program that ask the user to input the followings: number of shares, stock price, and broker commission. Last month jim purchased some stock

C-program, about how to create the program in c

about how to create the program in c

Shell script to print right traingle, Normal 0 false false ...

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

Create a linux shell, Create a linux shell (in other words, write a C/C++ p...

Create a linux shell (in other words, write a C/C++ program) that will recursively prompt for input from the user. The shell should prompt as yourRollNumber-currentDirector

Learning when and how to use a while loop, 1.  A function that produces the...

1.  A function that produces the Collatz sequence and counts the number of terms. 2.  A main function that calculates interesting values about the Collatz sequence. 1.The Col

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