sic parsing - SAX event handlers and test code