SimpleExcel\Writer\XMLWriter::saveString PHP Method

saveString() public method

Get document content as string
public saveString ( ) : string
return string Content of document
    public function saveString()
    {
        $content = '<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
 xmlns:o="urn:schemas-microsoft-com:office:office"
 xmlns:x="urn:schemas-microsoft-com:office:excel"
 xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
 xmlns:html="http://www.w3.org/TR/REC-html40">
 <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">';
        foreach ($this->doc_prop as $propname => $propval) {
            $content .= '
  <' . $propname . '>' . $propval . '</' . $propname . '>';
        }
        $content .= '
 </DocumentProperties>
 <Worksheet ss:Name="Sheet1">
  <Table>' . $this->tabl_data . '
  </Table>
 </Worksheet>
</Workbook>';
        return $content;
    }