public function getFirstElementChild()
{
if ($this instanceof Document) {
return $this->documentElement;
}
$node = $this->firstChild;
do {
if ($node instanceof Element) {
return $node;
}
$node = $node->nextSibling;
} while ($node instanceof \DOMNode);
return NULL;
}