title: Converting XML to C# object
body: <p>I need to get the OrderID from these xml data:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;GetOrdersResponse xmlns="urn:ebay:apis:eBLBaseComponents"&gt;
    &lt;Timestamp&gt;2015-12-10T16:12:55.184Z&lt;/Timestamp&gt;
    &lt;Ack&gt;Success&lt;/Ack&gt;
    &lt;Version&gt;967&lt;/Version&gt;
    &lt;Build&gt;e967_core_Bundled_5642307_R1&lt;/Build&gt;
    &lt;OrderArray&gt;
      &lt;Order&gt;
        &lt;OrderID&gt;865826&lt;/OrderID&gt;
        &lt;OrderStatus&gt;Active&lt;/OrderStatus&gt;
     &lt;/Order&gt;
    &lt;/OrderArray&gt;
  &lt;/GetOrdersResponse&gt;
  </code></pre>
  
  <p>I have tried this one but does not work.</p>
  
  <pre><code>var xDoc = XDocument.Parse(xmlResult);
  var orderElements = xDoc.Elements("GetOrdersResponse").Elements("OrderArray").Elements("Order");
  foreach (XElement elem in orderElements)
  {
      var orderId = Convert.ToInt32(_xmlHelper.GetChildElementValue(elem, "OrderID"));
  }
  </code></pre>
  
  <p>Please advice.</p>