Closed
Description
Description
When I try to access a node which does not exist in an XML / HTML, I get an exception:
The current node list is empty.
Current Solution:
I have to add try and catch for each statement or I have to check the ->count() for each statement.
Is it possible to ignore this error so that if it doesn't exist, it just keeps it empty / null?
Thanks
Example
// the following code throws an exception
$this->crawler->filter('marketingProductName')->text();