Transform raw data to xml