parses event records to xml format.