Question: Write the following XPath queries on the inventory.xml to select: a) All award elements in the document. b) The author(s) of the last book element

Write the following XPath queries on the inventory.xml to select:

a) All award elements in the document.

b) The author(s) of the last book element

c) All magazine elements whose style attribute value is equal to glossy value of the bookstore element at the root of the document.

d) All award elements that belong to book elements that have an id attribute.

e) All title elements one or more levels deep in the element.

f) All price elements elements of the book elements.

g) All author elements of books whose prices is less than 30 or greater than 50.

h) All magazine elements with style attributes.

XML Document:

Joe Bob Trenton Literary Review Honorable Mention 12 Mary Bob Selected Short Stories Britney Bob 55 2.50 Toni Bob B.A. Ph.D. Pulitzer Still in Trenton Trenton Forever 6.50

It was a dark and stormy night.

But then all nights in Trenton seem dark and stormy to someone who has gone through what I have.

Trenton misery Who's Who in Trenton Robert Bob

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!