title: Select all 'a' Node with HtmlAgilityPack
body: <p>I'm using HtmlAgilityPack in <strong>WinRT</strong> and try to replace all <code>&lt;a href="..."&gt;</code> nodes to what I want.</p>
  
  <p>I noticed that HtmlAgilityPack changed its way of node browsing in WinRT, so <code>SelectNode</code> are not applicable as an <a href="http://htmlagilitypack.codeplex.com/wikipage?title=Examples" rel="nofollow">example</a> shown.</p>
  
  <p>I wrote code as below but no luck.</p>
  
  <pre><code>foreach (HtmlNode node in doc.DocumentNode.FirstChild.Element("body").ChildNodes.Where(n =&gt; n.Name.Equals("a"))) // Want to find a-nodes in all html tags. SelectNode("//a[@href") doesn't work.
          {
                  HtmlAttribute att = node.Attributes.FirstOrDefault(l =&gt; l.Name.Equals("href"));
                  if (att != null)
                  {
                      node.Attributes.Add("onClick", String.Format("gotoLink('{0}');", att.Value));
                      att.Value = "#";
                  }
          }
  </code></pre>
  
  <p>Do I have to write recursive navigation method on document hierarchy?</p>