.NET component
DOM of Html document - HTML Parser
Collection of Rules - CSS Parser

Html Parser .NET

• File formats: HTML, HTML, XML format.
• Stylesheets: CSS Parser.
• 100% managed .NET component.
• Royalty-Free. No extra cost for Server license.
• 6 Months: Free Support + Free Updates.
Evaluation Version
Download  |   Online Demo
Developer License - $59
Buy now  |   Price List

Skip Navigation LinksHtml Parser .NET > Download

Html Parser .NET component




Learning Resources




News & Releases

May 13, 2016
Version 2.1 Update
Html Parser .NET component
December 15, 2015
Version 2.1 Update
Html Parser .NET component
April 12, 2013
Version 2.1 Update
Html Parser .NET component
January 06, 2013
Version 2.1 Update
Html Parser .NET component
October 10, 2012
Version 2.1 Update
Html Parser .NET component
July 19, 2012
Version 2.1 Update
Html Parser .NET component
June 01, 2012
Version 2.1 Update
Html Parser .NET component

Download

All versions of Html Parser .NET component come in the ZIP archive (.zip). It allows to easily install / uninstall the component. To install Html Parser .NET Trial download the component package from the following link and extract it to the disk:

Download Html Parser .NET Trial

Limitations

  • Maximum HTML file size < 10kb.
  • Max number of CSS rules < 10.

Html Parser .NET Trial version has the same performance and set of features as the Full version. However, above limitations are enforced during parsing HTML and CSS files.

First Steps

Html Parser .NET component is very easy in use.

  • Open a new project or your existing project.
  • In Solution Explorer right click "References" -> "Add Reference".
  • Add reference to DTG.Html.dll
  • Add "using DTG.Html;" namespace ("Imports" in VB).
  • Add "using DTG.Css;" namespace to parse CSS stylesheets.
  • Use the following code to parse HTML and CSS files:

C# code:

  1.  
  2. // Build DOM of the html
  3. HtmlDoc html = HtmlDoc.ParseHTML(htmltext);
  4.  
  5. // Find body tag
  6. HtmlNodeCollection taglist = html.Nodes.FindByName("body");
  7. HtmlTag body = taglist[0] as HtmlTag;
  8.  
  9. // Getting attributes of the tag
  10. HtmlNodeCollection reflist = html.Nodes.FindByName("a");
  11. HtmlTag link = reflist[0] as HtmlTag;
  12. string urladdress = link.Attributes["href"].Value;
  13.  
  14. // Get XHTML format
  15. string xhtml = html.XHTML;

VB.NET code:

  1.  
  2. ' Build DOM of the html
  3. Dim html As HtmlDoc = HtmlDoc.ParseHTML(htmltext)
  4.  
  5. ' Find body tag
  6. Dim taglist As HtmlNodeCollection = html.Nodes.FindByName("body")
  7. Dim body As HtmlTag = CType(taglist(0), HtmlTag)
  8.  
  9. ' Getting attributes of the tag
  10. Dim reflist As HtmlNodeCollection = html.Nodes.FindByName("a")
  11. Dim link As HtmlTag = CType(reflist(0), HtmlTag)
  12. Dim urladdress As String = link.Attributes("href").Value
  13.  
  14. ' Get XHTML format
  15. Dim xhtml As String = html.XHTML

Sales Questions

If you have questions regarding the component, we're ready to assist you.

Contact us by email
support @ devtriogroup.com

Or fill out the form
Contact Us Form

Learning Resources

Learn more about Html Parser .NET:
Learning Reasources

Code Examples are a practical way to quickly learn the basics and advanced level features of Html Parser .NET component.