Optimizing sax parser.