1 | <?php |
||
13 | class Driver_Simple_Xpath extends \DOMXpath |
||
14 | { |
||
15 | /** |
||
16 | * Find a DOMElement wit ha given xpath expression, optionally provide parent DOMNode to use as context. |
||
17 | * @param string $expression |
||
18 | * @param DOMNode $contextnode |
||
19 | * @return DOMNode |
||
20 | * @throws Exception_Xpath If no elements were found |
||
21 | */ |
||
22 | 15 | public function find($expression, $contextnode = NULL) |
|
38 | } |
||
39 |
If you suppress an error, we recommend checking for the error condition explicitly: