|
|
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
|
|
|
|
CSS Parser
CSS parser is available only in PRO version and presents a collection of
declarations and selectors for styles of HTML tags, classes, ids etc.
CSS Parser Features
|
C# VB sample codes
|
|
DOM structure of collections of CSS selectors and declarations.
|
C# |
VB.NET
|
Getting declarations of specified class, identifier or html tag.
|
|
Save the resulted Cascading Style Sheet CSS with all user changes.
|
C# |
VB.NET
|
Render the CSS stylesheet as an HTML document.
|
Easy to use API
Html Parser .NET is designed and developed to provide with convenient object model
and easy to use API. Consider the CSS stylesheet and code snippets that help to
parse it.
- div a, h3 {
- font-family: Monospace;
- font-size: 12px;
- }
-
- div#id5 {
- color : LightGreen;
- }
-
- td.class1 {
- font-weight: bold;
- }
-
- @import url("website.com/table.css");
The Css Parser allows to extract all elements of CSS style sheet. The table below
demonstrates the main collections and properties of Css Document that is available
a programmer to use.
C# Code
|
Value
|
|
css.RuleSets[0].Selectors[0]
|
div a
|
css.RuleSets[0].Selectors[0]
.SimpleSelectors[1].ElementName
|
a
|
css.RuleSets[0].Declarations[1].Name
|
font-size
|
css.RuleSets[0].Declarations[1].Expression
|
12px
|
css.RuleSets[1].Selectors[0]
.SimpleSelectors[0].Child.ID
|
id5
|
css.RuleSets[2].Selectors[0]
.SimpleSelectors[1].Child.Class
|
class1
|
|
css.Directives[0].Name
|
@import
|
css.Directives[0].Expression
|
url("website.com/ table.css")
|
css.Directives[0].Expression.Terms[0].Type
|
Url
|
css.Directives[0].Expression.Terms[0].Value
|
website.com/table.css
|
|
|
Css Parser Schema
|
|
|
|
Html Parser .NET LITE version
|
|
PRO version is a full featured parser of HTML and CSS files. In additional there
is LITE version. Features that are not included in the LITE version:
- CSS parser.
- Creating and saving CSS files.
LITE Developer License - $ 59
|
|
|
|
|