title: XDocument doesn't appear to exist in System.Xml namespace
body: <p>I'm having what I think will probably be a really simple problem, in developing my first WP7 app I've come to the stage of accessing my Site's api and parsing the XML, however I'm stumbling just at trying to use XDocument.</p>
  
  <p>I search around and found this example code: <a href="https://stackoverflow.com/questions/4002989/load-xml-file-from-website-into-xdocument-silverlight-and-wp7">Load an XML file from a website into XDocument (Silverlight and Windows Phone 7)</a> but the XDocument type does not exist, I understand it is supposed to exist in the System.Xml namespace which I am using, but the error still remains, what have I missed?</p>
  
  <p>Developing on Visual Studio 2010 Express for Windows Phone, code for this class is below:</p>
  
  <pre><code>using System;
  using System.Net;
  using System.IO;
  using System.Xml;
  using System.Windows;
  using System.Windows.Controls;
  using System.Windows.Documents;
  using System.Windows.Ink;
  using System.Windows.Input;
  using System.Windows.Media;
  using System.Windows.Media.Animation;
  using System.Windows.Shapes;
  
  namespace Application
  {
      public class DataRetriever
      {
          public void parseNewsXML()
          {
              WebClient client = new WebClient();
              client.OpenReadCompleted += (sender, e) =&gt;
                  {
                      if (e.Error != null)
                          return;
  
                      Stream str = e.Result;
                      XDocument xdoc = XDocument.Load(str);
                  };
          }
     } 
  </code></pre>
  
  <p>Exact error being thrown is:
  Error   1   The type or namespace name 'XDocument' could not be found (are you missing a using directive or an assembly reference?)</p>
  
  <p>Thanks in advance</p>