note 100201 deleted from libxml.constants by danbrown
| From: | danbrown@php.net | Date: | Thu, 30 Sep 2010 18:06:26 +0000 |
| Subject: | note 100201 deleted from libxml.constants by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-172854@lists.php.net to get a copy of this message | ||
Note Submitter: Kevin Herrera
----
For silver dot alecs at yahoo dot com (and everyone else):
I believe that the LIBXML_NOBLANKS options is for empty CDATA nodes only. AKA, white space.
The white space would be the blank spaces you use to make the XML document look "pretty"
when outputted as a string.
Using LIBXML_NOBLANKS would effectively make this XML:
<mydocument>
<with>
<nice>indentation</nice>
</with>
</mydocument>
into the following XML:
<mydocument><with><nice>indentation</nice></with></mydocument>
It will not remove named elements with no content or attributes without values.