Translate the data got from the database into the XML file