title: How to grab value using XDocument
body: <p>I have this xml from which I am trying to grab the value in the node <code>&lt;ErrorCode&gt;</code> after investigating, i found it easier to use XDocument because it cleans any unwanted <code>\r\n</code> that the response from an api was giving me.. but now I am not sure how to retrieve that value using XDocument</p>
  
  <pre><code>&lt;PlatformResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://platform.intuit.com/api/v1"&gt;
    &lt;ErrorMessage&gt;OAuth Token rejected&lt;/ErrorMessage&gt;
    &lt;ErrorCode&gt;270&lt;/ErrorCode&gt;
    &lt;ServerTime&gt;2012-06-19T03:53:34.4558857Z&lt;/ServerTime&gt;
  &lt;/PlatformResponse&gt;
  </code></pre>
  
  <p>I want to be able to take advantage of this call to get the value</p>
  
  <pre><code> XDocument xmlResponse = XDocument.Parse(response);
  </code></pre>
  
  <p>I can't use XmlDocument because it does not clean the XML as it is doing it XDocument</p>
  
  <p>Thank you</p>