JAXB: save event to XML file
CopyPasted from [wasman]'s project