Added function to export conversations to xml