title: Multiple elements with the same name, with multiple children
body: <p>I have come across a problem, I need to basicly deserialize this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;api_data&gt;
    &lt;status&gt;ok&lt;/status&gt;
    &lt;sessions&gt;
      &lt;id&gt;2&lt;/id&gt;
      &lt;sessionID&gt;6bfd1f1a7e87a8a6ed476234ad1d6e86&lt;/sessionID&gt;
      &lt;gameID&gt;1&lt;/gameID&gt;
      &lt;maxPlayers&gt;8&lt;/maxPlayers&gt;
      &lt;hostIP&gt;12.0.0.1&lt;/hostIP&gt;
      &lt;hostPort&gt;1993&lt;/hostPort&gt;
      &lt;inProgress&gt;0&lt;/inProgress&gt;
      &lt;timestamp&gt;1358894690&lt;/timestamp&gt;
    &lt;/sessions&gt;
    &lt;sessions&gt;
      &lt;id&gt;3&lt;/id&gt;
      &lt;sessionID&gt;eeb4dc2df32f885c2b7d13f28a246830&lt;/sessionID&gt;
      &lt;gameID&gt;1&lt;/gameID&gt;
      &lt;maxPlayers&gt;8&lt;/maxPlayers&gt;
      &lt;hostIP&gt;12.0.0.1&lt;/hostIP&gt;
      &lt;hostPort&gt;1993&lt;/hostPort&gt;
      &lt;inProgress&gt;0&lt;/inProgress&gt;
      &lt;timestamp&gt;1358894732&lt;/timestamp&gt;
    &lt;/sessions&gt;
  &lt;/api_data&gt;
  </code></pre>
  
  <p>And I need to convert that to usable data, its also dynamic, so there could be more than just 2 session elements, there could be 4, 20, or 0, the code I have now is just broken, and I was wondering whats a good method to get this to work?</p>
  
  <p>Currently I am up to the point of the XDocument class, with all this loaded.
  And I need to return a multi-dimensional array with this data.</p>
  
  <p>EDIT:</p>
  
  <p>Current code, completely broken:</p>
  
  <pre><code>var xmlSessions = xmlDATA.Descendants("api_data").Elements("sessions").Select(x =&gt; x);
  
  result = new string[xmlDATA.Descendants("api_data").Count(), 7];
  </code></pre>
  
  <p>EDIT 2: 
  More info</p>
  
  <p>The way I was thinking the MultiDimensional Array would be is as follows:</p>
  
  <pre><code>array[0,0] "ok" //Status
  array[1,0 to 7] //First Session details go here
  array[2,0 to 7] //Second session details go here, and so forth.
  </code></pre>