public static void Main()
XDocument xdoc = new XDocument(new XElement("tourism",
new XAttribute("name", "Норвегия"),
new XAttribute("season", "Горнолыжный"),
new XAttribute("month", "Октябрь"),
new XAttribute("continent", "Европа"))
xdoc.Save("tourism.xml");
var reader = XmlReader.Create("tourism.xml");
if (reader.IsStartElement() && reader.Name == "country")
string name = reader.GetAttribute("name");
Console.WriteLine("Страна: " + name);
string season = reader.GetAttribute("season");
Console.WriteLine("Сезон: " + season);
string month = reader.GetAttribute("month");
Console.WriteLine("Месяц: " + month);
string continent = reader.GetAttribute("continent");
Console.WriteLine("Континент: " + continent);