I\'m having difficulty trying to remove a div with a particular ID, and its children using the HTML Agility pack. I am sure I\'m just missing a config option, but its Friday a
This will work for multiple:
HtmlDocument d = this.Download(string.Format(validatorUrl, Url)); foreach (var toGo in QuerySelectorAll(d.DocumentNode, "p[class=helpwanted]").ToList()) { toGo.Remove(); }