title: How to use Html Agility Pack with windows 8 apps?
body: <p>First of all I want to say that I am new to c# and Windows 8 apps. So, please, don't be hard on me.</p>
  
  <p>I have the following code to extract some images urls and to save them in a XML file.
  I am using Html Agility Pack, but when I try to use the code with a Windows 8 application it doesn't work. I know that I have to use the Fizzler Html Agility Pack from here: <a href="http://fizzlerex.codeplex.com/releases/view/89833" rel="nofollow">http://fizzlerex.codeplex.com/releases/view/89833</a> but I don't know what is wrong.
  I am using visual studio 2012 and it does not recognize the following elements:</p>
  
  <pre><code>***WebClient*** x = new ***WebClient***();  
  ***XmlDocument*** output = new ***XmlDocument***();  
  ***XmlElement*** imgElements = output.CreateElement("ImgElements");  
  foreach(HtmlNode link in document.***DocumentElement***.SelectNodes("//img[contains(@src, '_412s.jpg')]"));                                             
  ***out***.Save(@"C:\test.xml");
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>using HtmlAgilityPack;
  using Fizzler;
  using Fizzler.Systems.HtmlAgilityPack;
  using System.Xml;
  
  public void Images()
  {
      WebClient x = new WebClient();
      string source = x.DownloadString(@"http://www.google.com");
      HtmlAgilityPack.HtmlDocument document = new HtmlAgilityPack.HtmlDocument();
      document.Load(source);
      XmlDocument output = new XmlDocument();
      XmlElement imgElements = output.CreateElement("ImgElements");
      output.AppendChild(imgElements);
      foreach(HtmlNode link in document.DocumentElement.SelectNodes("//img[contains(@src, '_412s.jpg')]"))
      {
          XmlElement img = output.CreateElement(link.Name);
          foreach(HtmlAttribute a in link.Attributes)
          {
              img.SetAttribute(a.Name, a.Value);
          }
          imgElements.AppendChild(img);
      }
      out.Save(@"C:\test.xml");
  }
  </code></pre>
  
  <p>Can you please help me?</p>
  
  <p>Thank you !</p>