/** * {@inheritdoc} */ public function rewind() { if (!$this->iterableResult) { $this->iterableResult = new \SimpleXMLIterator(file_get_contents($this->filename)); if ($this->xpath) { $this->iterableResult = new \ArrayIterator($this->iterableResult->xpath($this->xpath)); } } $this->iterableResult->rewind(); }