XmlSerializer serializer = new XmlSerializer(typeof(Realestates)); using (StringReader reader = new StringReader(xml)) { var test = (Realestates)serializer.Deserialize(reader); }