title: Downgrade XDocument and XmlReader to XmlDocument and XmlReader
body: <p>I want to downgrade a <strong>Windows Mobile</strong> application made with <strong>.Net Compact Framework 3.5</strong> to <strong>.Net Compact Framework 2.0 SP2</strong>.</p>
  
  <p>But... I don't know how to make this piece of code compatible with version 2.0.</p>
  
  <pre><code>XDocument doc = XDocument.Load(string.Format(Open_Cell_Id_Uri, new object[]{
      Settings.OpenCellIDApiKey,
      towerDetails.MobileCountryCode, 
      towerDetails.MobileNetworkCode, 
      towerDetails.TowerId,
      towerDetails.LocationAreaCode
      }));
  
  using (System.Xml.XmlReader reader = doc.CreateReader())
  {
       ...
  }
  </code></pre>
  
  <p>I changed using System.Xml.Linq with using System.Xml but this line is complaining:</p>
  
  <pre><code>using (System.Xml.XmlReader reader = doc.CreateReader())
  </code></pre>
  
  <p>How can I obtain a XmlReader from a XmlDocument?</p>
  
  <p>This is the code that I've downgraded:</p>
  
  <pre><code>XmlDocument doc = new XmlDocument();
      doc.Load(string.Format(Open_Cell_Id_Uri, new object[]{
      Settings.OpenCellIDApiKey,
      towerDetails.MobileCountryCode, 
      towerDetails.MobileNetworkCode, 
      towerDetails.TowerId,
      towerDetails.LocationAreaCode
      }));
  
  using (System.Xml.XmlReader reader = doc.CreateReader())//;
  {
      ...
  }
  </code></pre>
  
  <p>Thank you!</p>