Can someone guide me on to repairing the error on this query :
var objApps = from item in xDoc.Descendants(\"VHost\")
where
The compiler is complaining about this part
from x in item.Descendants("Application")
inside your Where clause. You should change it so that
select clause at the end, andtrue for item objects that you would like to keep.Here is my best guess at what you are trying to do (EDIT : attempt number two)
var objApps = from item in xDoc.Descendants("VHost").Descendants("Application")
select new clsApplication {
ConnectionsTotal = item.Element("ConnectionsTotal").Value
};