note 96055 added to class.domdocument

From: Date: Fri, 05 Feb 2010 18:01:16 +0000
Subject: note 96055 added to class.domdocument
Groups: php.notes 
Request: Send a blank email to php-notes+get-165691@lists.php.net to get a copy of this message
For anyone else who has been having issues with formatOuput not working, here is a work-around: rather than just doing something like: $outXML = $xml->saveXML(); force it to reload the XML from scratch, then it will format correctly: $outXML = $xml->saveXML(); $xml = new DOMDocument(); $xml->preserveWhiteSpace = false; $xml->formatOutput = true; $xml->loadXML($outXML); $outXML = $xml->saveXML(); ---- Server IP: 66.207.199.35 Probable Submitter: 208.65.73.103 ---- Manual Page -- http://www.php.net/manual/en/class.domdocument.php Edit -- https://master.php.net/note/edit/96055 Del: integrated -- https://master.php.net/note/delete/96055/integrated Del: useless -- https://master.php.net/note/delete/96055/useless Del: bad code -- https://master.php.net/note/delete/96055/bad+code Del: spam -- https://master.php.net/note/delete/96055/spam Del: non-english -- https://master.php.net/note/delete/96055/non-english Del: in docs -- https://master.php.net/note/delete/96055/in+docs Del: other reasons-- https://master.php.net/note/delete/96055 Reject -- https://master.php.net/note/reject/96055 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#165691) next »