XElement xmlCustomers = new XElement("customers",
from c in customers
select new XElement("customer",
new XAttribute("name", c.Name),
new XAttribute("city", c.City),
new XAttribute("country", c.Country)));

var result = (IEnumerable<Object>)xmlCustomers.XPathEvaluate(
	"/customer[@country = 'Italy']/@name");

foreach (var item in result) {
	Console.WriteLine(item);
}
