public function firstChild()
{
// Could possibly use $m->firstChild http://theserverpages.com/php/manual/en/ref.dom.php
$found = new \SplObjectStorage();
$flag = false;
foreach ($this->matches as $m) {
foreach ($m->childNodes as $c) {
if ($c->nodeType == XML_ELEMENT_NODE) {
$found->attach($c);
$flag = true;
break;
}
}
if ($flag) {
break;
}
}
return $this->inst($found, null, $this->options);
}