A test driver for SAX Parsing. The main method is passed a file name and an optional flag that defines whether the parser should be validating or not.
Static Public Member Functions | |
void | main (String[] args) |
Private Member Functions | |
void | usage () |
boolean | parseValidateFlag (String validateFlag) |
Parse the validate flag. | |
void | printList (ArrayList msgList) |
Print the trade engine messages to standard output. | |
void | printSAXError (SAXParseException e, String xmlFileName) |
void | test (String[] args) |
Use the SAX parser to parse trade engine messages read from a file. |
|
|
|
Parse the validate flag. The flag will be either validate=false validate=true If the flag has some other value the method will print a message and return true (since the value for the validate flag is true by default).
|
|
Print the trade engine messages to standard output.
|
|
|
|
Use the SAX parser to parse trade engine messages read from a file.
|
|
|