ZennoLab Assemblies Documentation
ParseByCssSelector(String,String,String) Method
Example 
ZennoLab.CommandCenter Namespace > ZennoPoster.Parser Class > ParseByCssSelector Method : ParseByCssSelector(String,String,String) Method

Type: System.String

Html document.

Type: System.String

CSS-selector.

Type: System.String

The attribute to take.

Parse page by CSS-selector.
Syntax
public static IEnumerable<string> ParseByCssSelector( 
   string source,
   string cssSelector,
   string attribute
)

Parameters

source

Type: System.String

Html document.

cssSelector

Type: System.String

CSS-selector.

attribute

Type: System.String

The attribute to take.

Return Value

Type: System.Collections.Generic.IEnumerable

The result of parsing data. Returns list of attributes.

Remarks

Example
The following example shows call the ParseByCssSelector method.
var resultParseByCssSelector = ZennoPoster.Parser.ParseByCssSelector("Example", "body", "innerText");
$resultParseByCssSelector = ZennoPoster\Parser::ParseByCssSelector("Example", "body", "innerText");
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

ZennoPoster.Parser Class
ZennoPoster.Parser Members
Overload List
Parse by XPath method.