public function saveFabric($type = 'html')
    {
        switch ($type) {
            case 'html':
                $this->output['raw'] = parent::saveHTML();
                break;

            case 'xml':
                $this->output['raw'] = parent::saveXML();
                break;
        }

        // default output process.
        $this->outputProcess();

        return $this->getDoctype() . trim($this->output['raw']);
    }