This project has moved and is read-only. For the latest updates, please go here.

How to get name into class of div by htmlagilitypack?

Topics: Developer Forum, Project Management Forum, User Forum
Apr 3, 2015 at 2:54 AM
I want to get text into class it like "pos-4275...". Definitely, The html agility pack on universal(not silverlight).

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

    var htmlDocument = new HtmlDocument();
    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;