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

Type: System.String

Html document.

Type: System.String

XPath.

Type: System.String

The attribute to take.

Parse page by XPath.
Syntax
public static IEnumerable<string> ParseByXpath( 
   string source,
   string xpath,
   string attribute
)

Parameters

source

Type: System.String

Html document.

xpath

Type: System.String

XPath.

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 ParseByXpath method.
var resultParseByXpath = ZennoPoster.Parser.ParseByXpath("Example", "//body", "innerText");
$resultParseByXpath = ZennoPoster\Parser::ParseByXpath("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 CSS-selector method.