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