added code to print out the sax events of the xhtmlcontent handler to a file