Assignment 9
Due: Thursday, December 1, 2005
Grading(Maximum Score 100):
Points will be taken off for not meeting all requirements. 5 points will be taken off for each class or method that does not have documentation! Documentation is defined as a written description of what the method or class does. This can be as short as a couple words or as long as a paragraph. Documentation MUST be in JavaDoc Format!
Overview:
In this assignment you will develop an XML parsing application. The application will read in information describing a set of Java frames.
Detail:
The application will read in information describing a set of Java frames. The information will be provided to the application in the form of an XML file. The XML file will describe the name, height, width, and position of one or more Java frames. When run, the application will extract this information and create open frames based on the information provided in the file. The height, width, position, title, and the number of frames will all be determined by the XML file.
The XML file:
The following link provides an example XML file that could be used in this assignment. You may modify this file in order to make parsing easier, as long as it remains in XML format. Parsing this file must be done using either the SAX or DOM parsers provided by Java 5.0.
Sample XML file: assignment9.xml (You may need to right click and "Save As")
SAX and DOM parsing
The following link should provide useful material to develop your application.
Sun - Working with XML
Hand In:
A print out of your code. Print out of your XML file. Print out of the run.(Full Screen shot! In windows: ctrl-PrintScreen)