// Where node is a HtmlNode instance string[] cssClasses = node.Attributes["class"] != null ? node.Attributes["class"].Value.Split(new[] {" "}, StringSplitOptions.RemoveEmptyEntries) : new string[0]; foreach(string cssClass in cssClasses) { // Do whatever you need to do with the CSS class }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)