xml export now takes null in the eventid parameter as null

- also a debug method removed