protected function getAttributeValues() { /* @var $node XMLReaderNode */ $node = parent::current(); if ('*' === $this->attr) { $attrs = $node->getAttributes()->getArrayCopy(); } else { $attrs = (array) $node->getAttribute($this->attr); } return $attrs; }