note 109416 added to domdocument.savexml

From: Date: Sun, 15 Jul 2012 22:54:16 +0000
Subject: note 109416 added to domdocument.savexml
Groups: php.notes 
Request: Send a blank email to php-notes+get-189147@lists.php.net to get a copy of this message
If you want to save xhtml (in a string), you may try the following method: <?php $doc = new DOMDocument('1.0'); // ... $xhtml = (string) $doc->saveXML($doc->doctype); $xhtml .= "\n"; $xhtml .= (string) $doc->saveXML($doc->documentElement); ?> ---- Server IP: 180.92.182.149 Probable Submitter: 124.244.171.10 ---- Manual Page -- http://www.php.net/manual/en/domdocument.savexml.php Edit -- https://master.php.net/note/edit/109416 Del: integrated -- https://master.php.net/note/delete/109416/integrated Del: useless -- https://master.php.net/note/delete/109416/useless Del: bad code -- https://master.php.net/note/delete/109416/bad+code Del: spam -- https://master.php.net/note/delete/109416/spam Del: non-english -- https://master.php.net/note/delete/109416/non-english Del: in docs -- https://master.php.net/note/delete/109416/in+docs Del: other reasons-- https://master.php.net/note/delete/109416 Reject -- https://master.php.net/note/reject/109416 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#189147) next »