title: Read Parent nodes only from XML using LINQToXML
body: <p>I have XML string that has parent nodes "Committee" and inside that another child node "Committee" is there. When I am using "<code>from committee in xDocument.DescendantsAndSelf("Committee")</code>" it is reading childnode also, but I don't want to read child nodes, I just want to read Parent nodes only.   </p>
  
  <pre><code>&lt;Committee&gt;
    &lt;Position&gt;STAFF&lt;/Position&gt;
    &lt;Appointment&gt;1/16/2006&lt;/Appointment&gt;
    &lt;Committee&gt;PPMSSTAFF&lt;/Committee&gt;
    &lt;CommitteeName&gt;PPMS Staff&lt;/CommitteeName&gt;
    &lt;Expiration&gt;12/25/2099&lt;/Expiration&gt;      
  &lt;/Committee&gt;
  &lt;Committee&gt;
     &lt;Position&gt;STAFF&lt;/Position&gt;
    &lt;Appointment&gt;4/16/2004&lt;/Appointment&gt;
    &lt;Committee&gt;PMOSSTAFF&lt;/Committee&gt;
    &lt;CommitteeName&gt;PPMS &lt;/CommitteeName&gt;
    &lt;Expiration&gt;12/25/2099&lt;/Expiration&gt;
  &lt;/Committee&gt;
  
       XElement xDocument= XElement.Parse(xml);
  
   var committeeXmls = from Committee in xDocument.Descendants("Committee")
                                  select new
                                  {
                                      CommitteeName = Committee.Element("CommitteeName"),
                                      Position = Committee.Element("Position"),
                                      Appointment = Committee.Element("Appointment"),
                                      Expiration = Committee.Element("Expiration")
                                  };
  
              int i = 0;
              foreach (var committeeXml in committeeXmls)
              {
                  if (committeeXml != null)
                  {
                      drCommittee = dtCommittee.NewRow();
                      drCommittee["ID"] = ++i;
                      drCommittee["CommitteeName"] = committeeXml.CommitteeName.Value;
                      drCommittee["Position"] = committeeXml.Position.Value;
                      drCommittee["Appointment"] = committeeXml.Appointment.Value;
                      drCommittee["Expiration"] = committeeXml.Expiration.Value;
  
                      dtCommittee.Rows.Add(drCommittee);                                        //   educationXml.GraduationDate.Value, educationXml.Major.Value);
                  }
              }
  </code></pre>