function __toString() { return $this->tag === '~root~' ? $this->toString(true, true, 1) : $this->tag; }