Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask Computer Engineering Expert

In addition to the textbook chapters, you may use any online reference such as:

• XML Introduction, http://www.w3schools.com/xml/xml_whatis.asp
• Starting with XML (Lessons 1-7), http://www.codehelp.co.uk/html/first.html
• Chapter 15: XML, http://docstore.mik.ua/orelly/web2/xhtml/ch15_01.htm
• XQL Tutorial, http://www.ibiblio.org/xql/xql-tutorial.html
• XQuery Tutorial, http://homepages.inf.ed.ac.uk/wadler/papers/xquery-tutorial/xquery-tutorial.pdf

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 prepare your information for the following. You want to export this data into an XML file. prepare 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) Each store 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 problem from B. above.

Assuming that you have an XML document with the structure given in A., prepare 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%.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M9268

Have any Question? 


Related Questions in Computer Engineering

1 what concurrency mechanisms are available in ecos2 what

1. What concurrency mechanisms are available in eCos? 2. What is the target application for TinyOS? 3. What are the design goals for TinyOS? 4. What is a TinyOS component?

Question how to create simple indexed files and multiple

Question: How to create simple indexed files and multiple indexed files in file structures in c++?

The following table shows the hourly wages hours worked and

The following table shows the hourly wages, hours worked, and output (number of widgets produced) in one week for five widget makers. Use MATLAB to answer these questions: a. How much did each worker earn in the week? b. ...

If we wish to start out as in fig 910 with all u and v

If we wish to start out, as in Fig. 9.10, with all U and V entries set to the same value, what value minimizes the RMSE for the matrix M of our running example?

If iphones and headphones are complements what would happen

If iPhones and headphones are complements. What would happen to supply and demand in both markets when a new study finds that users of iPhones live happier lives?

Assume you have a customer who would like to track

Assume you have a customer who would like to track inventory including vendor (where the product comes from) and customer (who the product is sold to). What needs to be done to create this database?

A matrix is a rectangular array of numerical values you can

A matrix is a rectangular array of numerical values. You can add or matrices to form a third matrix. You can multiply a matrix by a scalar, and you can matrix. Design an ADT that represents a matrix that has these operat ...

1 how is economics like a science2 why do economists make

1. How is economics like a science? 2. Why do economists make assumptions? 3. Should an economic model describe reality exactly? 4. Draw and explain a production possibilities frontier for an economy that produces milk a ...

Ethical issues in ai speculate as to possible ethical

Ethical issues in AI ... Speculate as to possible ethical issues arising from the use of AI in IT. Create a document which summarizes the issue and then state your own analysis of the situation. Be sure to cite a specifi ...

Instructions for hw provide your own short java code

Instructions for HW: Provide your own short Java code example that uses a For or While loop. Be sure to test and describe what your code is doing. Use Java comments to document your code.

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate