c# - Parse HTML in Windows Phone 8 without HtmlAgilityPack -
i'm trying build app windows phone 8 i'm trying parse data website.htmlagilitypack right tool when load website
htmldocument doc = web.load(url);
i have error:
'htmlagilitypack.htmlweb' not contain definition 'load' , no extension method 'load' accepting first argument of type 'htmlagilitypack.htmlweb' found
my question is: there other way htmlagilitypack parse html in windows phone 8 ?
thanks.
that method not available wp8, since doesn't allow async downloads. should somehow download page , load htmldocument, example
httpclient client = new httpclient(); var html = await client.getstringasync("http://stackoverflow.com"); var doc = new htmlagilitypack.htmldocument(); doc.loadhtml(html);
Comments
Post a Comment