Skip to content Skip to sidebar Skip to footer

Htmlagilitypack-pcl + Linq

Well, basically I have a Windows Phone 8.1 app that's supposed to download the html file and parse it using HtmlAgilityPack-PCL and LINQ. var nodes = from tr in doc.DocumentNode.D

Solution 1:

you probably mean

var node = doc.DocumentNode.Descendants("div").
               Where(div => div.GetAttributeValue("id", string.Empty) == "screen").
               FirstOrDefault();

if that does not work feel free to share your html or the relevant part of it.

Post a Comment for "Htmlagilitypack-pcl + Linq"