Save data to xml