public CASSMTPSI(String content) { MemoryStream memory = new MemoryStream(System.Text.Encoding.UTF8.GetBytes(content)); XmlSerializer SerializerObj = new XmlSerializer(typeof(CASSMTPSI)); CASSMTPSI tpsi = (CASSMTPSI)SerializerObj.Deserialize(memory); }