interface XML{ function generate(); } class XMLfromFILE implements XML{ private $_file; public function __construct(){ // $this->_file=$obj; } function generate(){ $gen = new XMLWriter(); $gen->openMemory(); $gen->setIndent(true); $gen->setIndentString(" "); $gen->startDocument("1.0","UTF-8"); $gen->startElement('PLIK'); $gen->writeAttribute("Nazwa",'pliczek'); $gen->endElement(); $gen->endDocument(); } }
następnie gdy wywołam na obiekcie metodę generate() dostaje taki bład. To jest związane z header ? Ma ktoś pomysł jak to rozwiązać ?
This page contains the following errors:
error on line 2 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error.