Results 1 to 1 of 1

Thread: [2.0] HtmlParser

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    [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:
    1. HtmlParser hp = new HtmlParser();
    2. hp.LoadHtml(data);
    3. foreach (HtmlParser.Element e in hp.Elements)
    4. {
    5.      if (e.getAttribute("id") == "someid")
    6.          return e;
    7. }

    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
  •  



Click Here to Expand Forum to Full Width