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