note 15211 deleted from function.domxml-dumpmem by nlopess

From: Date: Sat, 26 Jun 2004 19:10:06 +0000
Subject: note 15211 deleted from function.domxml-dumpmem by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-71805@lists.php.net to get a copy of this message
Note Submitter: daniel@omnis.com ---- In the PHP 4.0.6 source tree, in ext/domxml/php_domxml.c line 1079, change: <br> xmlDocDumpMemory(docp, &mem, &size); <br> to: <br> xmlKeepBlanksDefault(0); xmlDocDumpFormatMemory(docp, &mem, &size, 1); <br> Voilá! Nice pretty formatting! BUT, this will not show empty nodes: <foo />. <br> Daniel Veillard, libxml2 maintainer, says he may remove this need to set xmlKeepBlanksDefault(0) for xmlDocDumpFormatMemory() to indent. Without xmlKeepBlanksDefault, it only adds the line breaks, and doesn't indent.

« previous php.notes (#71805) next »