xpath('//channel/item'); foreach ($results as $result) { $title = $result->{"title"}->__toString(); $link = $result->{"link"}->__toString(); $anzeigeLink = $link; $descr = $result->{"description"}->__toString(); $this->counter++; $this->results[] = new \App\Models\Result( $this->engine, $title, $link, $anzeigeLink, $descr, $this->gefVon, $this->counter ); } } catch (\Exception $e) { Log::error("A problem occurred parsing results from $this->name"); return; } } }