XNamespace ns = "http://schemas.devleap.com/Customer";
XDocument xmlCustomers = new XDocument(
new XElement(ns + "customers",
from c in customers
select new XElement(ns + "customer",
new XAttribute("city", c.City),
new XAttribute("name", c.Name),
new XAttribute("country", c.Country))));
