Parsing Hyperlinks from a webpage
<p>I have written following code to parse hyperlinks from a given page.</p>

<pre><code>    WebClient web = new WebClient();
    string html = web.DownloadString("http://www.msdn.com");
    string[] separators = new string[] { "&lt;a ", "&gt;" };
    List&lt;string&gt; hyperlinks= html.Split(separators, StringSplitOptions.None).Select(s =&gt;
    {
        if (s.Contains("href"))
            return s;
        else
            return null;
    }).ToList();
</code></pre>

<p>Although string split still has to be tweaked to return urls perfectly. My question is there some Data Structure, something on the line of XmlReader or so, which could read HTML strings efficiently.</p>

<p>Any suggestion for improving above code would also be helpful.</p>

<p>Thanks for your time.</p>
