This is my XML file and I am using linq and entity framework
<?xml version="1.0" encoding="utf-8" ?>
<Projects>
<Project ProjectId="JP001" Country="Canada" ProposedBy="Jim Priac"/>
<Project ProjectId="KS12" Country="Canada" ProposedBy="Aya Suriour"/>
<Project ProjectId="ANS16" Country="Malesia" ProposedBy="Gour martin"/>
<Projects>
the linq query I am using is
IEnumerable<string> Proposed_By = from project in xmldoc.Descendants("Projects").Elements("Project")
where project.Attribute("Country") == "Canada"
select project.Attribute("ProposedBy");
but I am not getting correct output