Re: note 15211 modified in function.domxml-dumpmem by philip
| From: | Philip Olson | Date: | Fri, 31 Aug 2001 07:34:24 +0000 |
| Subject: | Re: note 15211 modified in function.domxml-dumpmem by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-17465@lists.php.net to get a copy of this message | ||
I modified this at the users request. Should this go to php-dev? Am
leaving it and letting someone else deal with it :)
Philip
> 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.
>
> http://www.php.net/manual/en/function.domxml-dumpmem.php
>
>