Installation:
=============
1. Unzip the contents of the JavaXPathUsingSAX.zip file to a directory of your choice

The project structure and contents should be as follows:
NOTE:  <...> indicate directory/package names

ReadMe.txt                          <- Located in top level of JavaXPathUsingSAX.zip
<proj>
 +---<lib>  ** Note: You may need to create the "lib" directory (See Step 2)
 +---<src>
 +---+---<com>
 +---+---+---<javacodegeeks>
 +---+---+---+---<DefaultHandlerSample>
 +---+---+---+---+---Computer.java       <- Java source for DefaultHandlerSample (1 of 3)
 +---+---+---+---+---JavaSAXParse.java   <- Java source for DefaultHandlerSample (2 of 3)
 +---+---+---+---+---MyHandler.java      <- Java source for DefaultHandlerSample (3 of 3)
 +---+---+---+---<SaxonSample>
 +---+---+---+---+---XPathSAXSample.java <- Java source for SaxonSample (1 of 1)
 +---inventory.xml                       <- Data file in project root directory
 
    There are 6 files in the JavaXPathUsingSAX.zip archive for the 2 samples presented:
    ===================================================================================
    ReadMe.txt - This file.

    inventory.xml - The XML data file used in both examples

    Computer.java - Application source used DefaultHandlerSample     - 1 of 3
    JavaSAXParse.java - Application source used DefaultHandlerSample - 2 of 3
    MyHandler.java - Application source used DefaultHandlerSample    - 3 of 3

    XPathSAXExample - Application source used in SaxonSample         - 1 of 1


2. Create a directory named "lib" as a sub-directory to the "proj" directory
    if it does not exist.

3. Download SaxonHE
    a. Open your favorite browser and navigate to:   http://saxon.sourceforge.net.
    b. Follow the SaxonHE link
    c. Download both the "Download for Java" and the "Download documentation and samples"
        archives
    d. Open the "Download for Java" archive and copy the saxon9he.jar file to the
        "lib" directory mentioned in Step 2

4. Using IntelliJ create a project for the above "proj" structure.

5. Be sure to create a library reference to the saxon9he.jar in order for the
    SaxonSample to compile.

NOTE: The DefaultHandler example can be compiled and executed by hand.
    There is a documented bug in the Saxon9he.jar that causes a runtime
    error when the SaxonExample is compiled and executed by hand,
    but does not occur when compiled and executed with the IntelliJ IDE.







