xpath

Returns a List of Strings that matches the specified selector. If no matches are found, null is returned.
xpath($data , content = None , method = "text" ) : List
$data.xpath( content = None , method = "text" ) : List
Parameters
$data String

Xpath Selector.

content String

If content is defined then the xpath expression will be executed in this content.

method String

Defines the method used to extract the content:
text (default) : Returns only the text contained in the result of the xpath expression
innerHTML : Returns the inner html of the result of the xpath expression
outerHTML : Returns the outside html of the result of the xpath expression
len : Returns the number of elements found.

See also
Examples

How to extract text based on XPath selectors