|
-
Jan 21st, 2009, 05:18 AM
#1
Thread Starter
Frenzied Member
[2.0] HtmlParser
Made this months ago because I needed an html parser that worked like DOM. I know it is messy, I was trying to get it to work with sites that have sloppy html (google.com for example).
I might add more functionality later. Really it has been enough for everything I have done so I might not.
http://www.mediafire.com/?1gjzjh1gvlz
Example usage
csharp Code:
HtmlParser hp = new HtmlParser();
hp.LoadHtml(data);
foreach (HtmlParser.Element e in hp.Elements)
{
if (e.getAttribute("id") == "someid")
return e;
}
If you have any questions, let me know.
If you use this, credit would be nice .
Last edited by high6; Jan 21st, 2009 at 05:53 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|