title: Linq on Complex XML
body: <p>Hi I Have the following XML </p>
  
  <pre><code>&lt;Feed&gt;
  &lt;Control&gt;
          &lt;Username&gt;Fnol13&lt;/Username&gt;
          &lt;Password&gt;12345&lt;/Password&gt;          
  &lt;/Control&gt;
  &lt;Repairer&gt;
          &lt;RepairerName&gt;Test&lt;/RepairerName&gt;
          &lt;RepairerAddress&gt;Test&lt;/RepairerAddress&gt;
          &lt;RepairerTelephone&gt;Test&lt;/RepairerTelephone&gt;
  &lt;/Repairer&gt;
  &lt;/Feed&gt;
  </code></pre>
  
  <p>And a Model Class Containing following Properties </p>
  
  <pre><code>[Serializable]
  public  class Job {
  
      public string Username { get; set; }
  
      public string Password { get; set; }
  
      public string Reference { get; set; }
  
      public string RepairerAddress { get; set; }
  
      public string RepairerTelephone { get; set; }
  
  
  }   
  </code></pre>
  
  <p>I am using following Linq Query to Extract Data from XML </p>
  
  <pre><code>var results = from job in xmlDoc.Descendants("Control")
                        select new Job {
                            Username = (string)job.Element("Username").Value,
                            Password = (string)job.Element("Password").Value
  
  
                        };
  // Here I want to add as well Descendants("Repairer") using same query
  
          return results.ToList();
  </code></pre>
  
  <p>Problem is that can return <strong>Descendants("Control")</strong> However I would like to get also Descendants("Repairer") and return in a same list as my model is showing. Could you please help me to write Linq Query and I am confirming you I am very new in Linq.</p>