public function __construct() { $this->dom = new DOMDocument('1.0', 'utf-8'); $this->root = $this->dom->createElement('export'); $this->dom->appendChild($this->root); }