public function attribute(string ...$nodePath): string
    {
        // cast to string since array_pop can return NULL
        $attribute = (string) array_pop($nodePath);
        $node = $this->retrieveNode(...$nodePath);
        return (null !== $node) ? (string) $node[$attribute] : '';
    }