title: Getting the Parent object in nested XML to Linq
body: <p>Assume two classes, simplified</p>
  
  <pre><code>Class Room {
      String Name {get; set;}
      String Type {get;set;}
      List&lt;Employee&gt; Employees {get; set;}
  }
  Class Employee {
      Int64 ID {get;set;}
      Room Parent {get; set;}
  }
  </code></pre>
  
  <p>I get XML data from a database and use LINQ to read this XML into objects:</p>
  
  <pre><code>List&lt;Room&gt; rooms = new List&lt;Room&gt;();
  rooms = 
      (
          from r in XDocument.Load(reader).Root.Elements("Room") select new Room {
              Name = r.Attribute("name").Value,
              Type = r.Attribute("type").Value,
              Employees = 
                  (
                      from e in r.Elements("Employee") select new Employee {
                      ID = (Int64)e.Attribute("hrid"),
                      Parent = ?????
                  }
              ).ToList()
          }
      ).ToList();
  </code></pre>
  
  <p>Notice the ?????? up there? That's the question. How can I create a reference to the parent Room within the Employee? </p>