use XmlSerializer to save data to xml file.