网络资源的拷贝粘贴 备份参考之用


24 January 2008

HTML Parsers in C#

Open Source HTML Parsers in C#

Posted by: Shalabh Saxena on ?? 30, 2005 DIGG
Hi,

 Im looking for HTML parser developed in C# which i can extend according to my needs are there any??

Thanks in advance,
Shalabh
  Message #186750 Post reply Post reply Post reply Go to top Go to top Go to top

GOLD Parser

Posted by: Bosah C. on ?? 02, 2005 in response to Message #186445
Hi,

I have used several Parsers in the past for manually parsing HTML. But I have found that GOLD Parser is by far the best and easy to use. It is written in C# and is open source with a very active community.

It includes grammars from HTML and many others.

GOLD Parser
http://www.devincook.com/goldparser/index.htm

Grammars (including HTML, CSS, XML....)
http://www.devincook.com/goldparser/grammars/index.htm#FileFormats

Cheers,
Bosah C.

  Message #195782 Post reply Post reply Post reply Go to top Go to top Go to top

Antlr

Posted by: Pedro J. Molina on ?? 03, 2006 in response to Message #186445
Hi.

Antlr also works quite well. There is a version for C#.
The tool:
   http://antlr.org/

The grammar for HTML:
    http://antlr.org/grammar/HTML

Hope this helps.
Pedro J. Molina

No comments:

Google