Serialize classes to xml or deserialize  xml to classes