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
how to create a screen for messages for a data transmission system

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

using UML 1- Identify primary classes 2- Scenario description 3- Class diagrams 4- Sequence diagrams

Write a program to read a text file and create a dictionary. The keys for the dictionary should be all 26 letters of the alphabet and the values of the dictionary should be the lis

Determine the solution to the following differential equation. x 2 y′′ + 3xy′ + 4 y = 0   Solution Find the roots to (3) first as generally. r(r -1) + 3r + 4 = 0 r

Write a function called threshold1 (in a file called 'threshold1.m'. The function takes three arguments. The first two are arbitrarily sized arrays, A and B, and the third is a pos

1.) Write a flowchart and program to do the following: A pressure sensor in a cooling system measures the pressure of the refrigerant and is connected to Port -1 of the 8051. If th

Microsoft Intermediate Language in .NET When you create value in any terminology and gather, it will be changed to an 'Intermediate Language' (Microsoft Advanced Language - MSIL

Write a procedure named Str_concat that concatenates a source string to the end of a target string. Sufficient space must exist in the target string to accommodate the new characte

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 tha