Seditio Source
Root |
./othercms/xenForo 2.2.8/src/XF/Admin/View/Style/Export.php
<?php

namespace XF\Admin\View\Style;

class
Export extends \XF\Mvc\View
{
    public function
renderXml()
    {
       
$this->response->setDownloadFileName($this->params['filename']);

       
/** @var \DOMDocument $document */
       
$document = $this->params['xml'];
        return
$document->saveXml();
    }

    public function
renderRaw()
    {
       
$this->response
           
->setDownloadFileName($this->params['filename'])
            ->
contentType('application/octet-stream', '');

        return
$this->response->responseFile($this->params['tempFile']);
    }
}