university
Class UniversityXMLParser

java.lang.Object
  extended by university.UniversityXMLParser

public class UniversityXMLParser
extends java.lang.Object

UniversityXMLParser reads in an XML document containing members of the University. The XML file is validated against a XML schema to determine if the document is well formed and correct. The program then creates a new person type of person depending on the type of node that is read. For example if a Undergraduate node is read the program will create a new Undergraduate object. When the program terminates a list of the people created is displayed to the user.

To run the program:

java university/UniversityXMLParser [xmlDocument] [xmlSchema]


Constructor Summary
UniversityXMLParser()
          Creates a new instance of UniversityXMLParser
 
Method Summary
 void display(java.util.ArrayList<Person> universityList)
          Display all of the people that were created from the XML document.
static void main(java.lang.String[] args)
          Entry point to the UniversityXMLParser application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniversityXMLParser

public UniversityXMLParser()
Creates a new instance of UniversityXMLParser

Method Detail

display

public void display(java.util.ArrayList<Person> universityList)
Display all of the people that were created from the XML document.

Parameters:
universityList - A list of all of the people that were created.

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Entry point to the UniversityXMLParser application. To run the program: university/UniversityXMLParser [xmlDocument] [xmlSchema]

Parameters:
args - the command line arguments
Throws:
java.lang.Exception