static void Main(string[] args) { var geoObjects = new StreetParser().Download(); var tw = new StreamWriter(new FileStream("res.xml", FileMode.Create), new UTF8Encoding()); new XmlSerializer(typeof(List <Street>)).Serialize(tw, geoObjects); }
static void Main(string[] args) { var geoObjects = new StreetParser().Download(); var tw = new StreamWriter(new FileStream("res.xml", FileMode.Create), new UTF8Encoding()); new XmlSerializer(typeof (List<Street>)).Serialize(tw, geoObjects); }