Hi
Try this code..
I have used lamda expression instead of comprehension queries.
XDocument xdoc = XDocument.Load("xmlfile.xml");
var lv1ss = xdoc.Descendants("Vehicle").Descendants("feature").Select(k => new
{
propertyid = k.Descendants("propery").Select(a => new
{
propertyid = a.Attribute("id").Value,
propertyname = a.Attribute("name").Value
}).ToList(),
id = k.Attribute("id").Value,
name = k.Attribute("name").Value
}).Where(k => k.name == "car").ToList();