Crawler::filterXPath()

Crawler filterXPath(string $xpath)

Filters the list of nodes with an XPath expression.

The XPath expression is evaluated in the context of the crawler, which is considered as a fake parent of the elements inside it. This means that a child selector "div" or "./div" will match only the div elements of the current crawler, not their children.

Parameters

string $xpath An XPath expression

Return Value

Crawler A new instance of Crawler with the filtered list of nodes
doc_Symfony
2016-10-28 06:12:33
Comments
Leave a Comment

Please login to continue.