/** * @inheritdoc */ public function current() { if (!isset($this->xmlReader)) { throw new \RuntimeException('The resource needs to be open.'); } if (!$this->xmlReader->name) { return false; } /** @var \DOMElement $data */ $data = $this->xmlReader->expand(); $data = $this->xmlKit->convertDomElementToArray($data); return array('value' => $data); }