Question on using event handler with SAX parsing and DOM