Postgresql event xml generator