Using DOM, XPath, and XSLT Description The goal of this project is

Question
Using DOM, XPath, and XSLT

Description

The goal of this project is to learn DOM, XPath, and XSLT to query XML data.

This project must be done individually. No copying is permitted. Note: We will use a

system for detecting software plagiarism, called MossLinks to an external site., which is

an automatic system for determining the similarity of programs. That is, your program

will be compared with the programs of the other students in class as well as with the

programs submitted in previous years. This program will find similarities even if you

rename variables, move code, change code structure, etc.

Note that, if you use a Search Engine to find similar programs on the web, we will find

these programs too. So don't do it because you will get caught and you will get an F in

the course (this is cheating). Don't look for code to use for your project on the web or

from other students (current or past). Don't use ChatGPT or any other Al program to

generate code. Just do your project alone using the help given in this project description

and from your instructor and GTA only.

Platform

You will do this project on your own PC/laptop using Java. You may use a text editor to

develop your Java programs but you may use an IDE, such as IntelliJ Idea or Eclipse, if

you want./nA. Download the file xpath.java Download xpath.javaand

edit it to include the following XPath queries. First,

download the following XML document along with its

DTD that describes journal articles:

• SigmodRecord.xml Download

SigmodRecord.xml.

• SigmodRecord.dtd Download

SigmodRecord.dtd(the DTD of the document).

Note: the links are NOT broken. Just right click and use

"Save Link As" to save the XML and DTD files on your

PC.

Insert XPath queries in xpath.java that answer the

following:

3. Print the titles of all articles whose one of the

authors is David Maier.

4.

Print the titles of all articles whose first author

is David Maier.

5. Print the titles of all articles whose authors

include David Maier and Stanley B. Zdonik.

6. Print the titles of all articles in volume

19/number 2.

7. Print the titles and the init/end pages of all

articles in volume 19/number 2 whose authors

include Jim Gray.

8. Print the volume and number of all articles

whose authors include David Maier. (note: we

need the number entry of an article, not the

number of articles)./nB. Consider the following XML document along with its

DTD that describes recipes:

▪ recipes.xmlDownload

recipes.xml

• recipes.dtdDownload recipes.dtd

Write an XSLT program recipes.xsl to display the recipes

nicely on a web browser. The XSLT should generate

HTML code. You should display all data except the

related elements. Use the Java program xslt.java to test

your XSLT and then load the resulting html output file on

your web browser.

Question image 1Question image 2Question image 3