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] : '';
    }
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] : '';
    }
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 ] : '' ; }
Get the attribute content of a comprobante or child node
Return an empty string if the node or the attribute does not exists

The last argument is always the attribute name

@param string[] ...$nodePath
@return string
Get the attribute content of a comprobante or child node Return an empty string if the node or the attribute does not exists