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

New Post: How to get name into class of div by htmlagilitypack?

$
0
0
I want to get text into class it like "pos-4275...". Definitely, The html agility pack on universal(not silverlight).
Image

var httpClient = new HttpClient();
    string strhtml = await httpClient.GetStringAsync("http://");

    var htmlDocument = new HtmlDocument();
    htmlDocument.LoadHtml(strhtml);
    List<SmartThesuarus> arrays = new List<SmartThesuarus>();
    var information_content = htmlDocument.GetElementbyId("content");
    if (information_content != null)
    {
        var cdo_cloud = information_content.Descendants("div").Where(x => x.GetAttributeValue("class", "") == "");
        if (cdo_cloud != null)
        {
            foreach (var node in cdo_cloud)
            {


            }
        }

    }
    return arrays;

Viewing all articles
Browse latest Browse all 655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>