protected function nodeToString(string $indent = ''): string
    {
        $str = $indent . "--{$this->getName()}--\n";

        foreach ($this->getChildren() as $child)
        {
            $str .= $child->nodeToString($indent . '  ');
        }

        return $str;
    }