Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I manipulate the DOM from a string of HTML in C#? [closed]

For the moment the best way that I have found to be able to manipulate DOM from a string that contain HTML is:

WebBrowser webControl = new WebBrowser();
webControl.DocumentText = html;
HtmlDocument doc = webControl.Document;

There are two problems:

  1. Requires the WebBrowser object!
  2. This can't be used with multiple threads; I need something that would work on different thread (other than the main thread).

Any ideas?

like image 934
Patrick Desjardins Avatar asked Oct 23 '08 23:10

Patrick Desjardins


1 Answers

I did a search to GooglePlex for HTML and I found Html Agility Pack I do not know if it's for that or not, I am downloading it right now to give a try.

like image 96
Patrick Desjardins Avatar answered Sep 22 '22 07:09

Patrick Desjardins