The mysqlbinlog utility will parse the binlog for you and takes all sorts of arguments like a start and stop time for instance. You don't need to but wrapping it with XS would be easy.
cheers
tachyon
Comment on Re^2: How to check for new records in mysql database every minute