1
Vote

How to parse a document from string ?!

description

Hello ..
I'm get html code use this code :
     WebClient wc = new WebClient();
     using (Stream st = wc.OpenRead(url)){
     using (StreamReader sr = new StreamReader(st, Encoding.UTF8)){
     html = sr.ReadToEnd ();
     }
}
but I can't parse it to document object, to select from document ..
Elements elements = document.Select("a[href]");
So how I can parse or convert html code string to document object
Document document = ??

My regards ..

comments