Question: 2. Consider XML data given by the following DTD: (Elements that are not defined are PCDATA.) For each of the questions below write an XPath

2. Consider XML data given by the following DTD:

(Elements that are not defined are PCDATA.) For each of the questions below write an XPath or an XQuery query.

(In case you need any XQuery built-in functions, you can reference:

http://www.xqueryfunctions.com/ )

(a) Return all titles in the XML document

(b) Find the addresses of all theaters that have some tickets under $35 on 11/9/2008 and the titles of their show on that night.

(c) Retrieve all concert titles whose type is chamber orchestra where the average ticket price is at least $50.

(d) Write a query that constructs a new XML document with the following structure:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!