CS 540 Class Project: State machine model XML parser.