public function odd() { $found = new \SplObjectStorage(); $odd = true; foreach ($this->matches as $m) { if ($odd && $m->nodeType == XML_ELEMENT_NODE) { $found->attach($m); } $odd = $odd ? false : true; } return $this->inst($found, null, $this->options); }