public function createImportFile() {
        @unlink($this->localPath);
        $fp = fopen($this->localPath, 'w');
        fwrite($fp, $this->xmlStart);

        foreach ($this->elements as $element) {
            fwrite($fp, $element->getXml());
        }

        fwrite($fp, $this->xmlEnd);
        fclose($fp);

        return $this->localPath;
    }