private function getRootElement() { if (!$this->dom instanceof fDOMDocument) { $this->initDomDocument(); } return $this->dom->documentElement; }