Quantcast
Channel: htmlagilitypack Forum Rss Feed
Viewing all articles
Browse latest Browse all 655

New Post: Gettin error with the Load Functionality

$
0
0

I saw the following code in one of the sites and tried it for my Windows Phone 7 project.

 

            HtmlWeb web = new HtmlWeb();
            HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
            doc = web.Load("http://jsbin.com/owobe3");
            HtmlNode rateNode = doc.DocumentNode.SelectSingleNode("//div[@id='rate']");
            string rate = rateNode.InnerText;

What i am getting is the following error:

Error    1    'HtmlAgilityPack.HtmlWeb' does not contain a definition for 'Load' and no extension method 'Load' accepting a first argument of type 'HtmlAgilityPack.HtmlWeb' could be found (are you missing a using directive or an assembly reference?)

I am using Visual Studio 2010 Express for Windows Phone

Please help.


Viewing all articles
Browse latest Browse all 655

Trending Articles