Il seguente codice
Il risultato è:Codice PHP:
$local1= new DOMImplementation;
$local2 = $local1->createDocumentType('html', '', '');
$this->xmlDom = $local1->createDocument("", "", $local2);
....
$this->xmlDom->formatOutput = true;
$this->xmlDom->save($value1);
Vorrei evitare che nel codice venga scritto "<?xml version="1.0"?>", come posso fare?<?xml version="1.0"?>
<!DOCTYPE html>
...
Grazie