Returns the node name of the first node of the list.
\InvalidArgumentException When current node is empty
public function nodeName() : string { if (!$this->nodes) { throw new \InvalidArgumentException('The current node list is empty.'); } return $this->getNode(0)->nodeName; }