added function for getting the right xml information based on event-type