
Homework #5: XML Exercise
Grading Guidelines
1) Given any of the following XML files:
http://www-scf.usc.edu/~csci571/2009Spring/hw5/data1.xml
http://www-scf.usc.edu/~csci571/2009Spring/hw5/data2.xml
http://www-scf.usc.edu/~csci571/2009Spring/hw5/data3.xml
http://www-scf.usc.edu/~csci571/2009Spring/hw5/data4.xml
http://www-scf.usc.edu/~csci571/2009Spring/hw5/data5.xml
http://www-scf.usc.edu/~csci571/2009Spring/hw5/data6.xml
http://www-scf.usc.edu/~csci571/2009Spring/hw5/data7.xml
http://www-scf.usc.edu/~csci571/2009Spring/hw5/data8.xml
the HTML/Javascript code should a produce similar web page as shown in Figure 1 of
the description. Clicking on the “Load XML” button, a new pop-up window should
appear consisting of a 15x15 array for the crossword puzzle, the across/down clues taken
from the XML file, and a “Solve” button as shown in Figure 2. (3 points total, -2 for not
creating the correct template, -0.5 for missing clues across, -0.5 for missing clues
down)
2) Given a new XML file(not available to the students) the HTML/Javascript code
should produce similar web page as shown in Figure 1 of the description. Clicking on the
“Load XML” button, a new pop-up window should appear consisting of a 15x15 array
for the crossword puzzle, the across/down clues taken from the XML file, and a “Solve”
button as shown in Figure 2. (3 points total, -2 for not creating the correct template,
-0.5 for missing clues across, -0.5 for missing clues down)
3) After clicking on the “Solve” button the table should appear with the solution of the
puzzle which is included in the XML file. The table should be updated using DHTML
and no refresh should occur as shown in Figure 3. (3 points, -2 for refreshing, -1 for the
wrong display of solution)
4) Given an XML file with the same “structure” as the data files provided but different
element tag names, the HTML/Javascript code should produce similar web page as
shown in Figure 2 of the description. (1 point, -1 if they have used
getElementByTagName)
5) Source code submission:
Students should submit their source code and the README file electronically to
the csci571 account so that it can be graded by graders and compared to all other
students' code via the MOSS code comparison tool.
You will lose 10% if anything is missing in submission; 20% if you don't submit
the files.