News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Davey Shafik's Blog:
ext/dom and libxml2 charset and entities behaviors
August 11, 2009 @ 10:23:53

Davey Shafik points out a second option for the saveXML function of the DOM functionality in PHP - an option to restrict the use of "empty tags".

This argument currently only supports one value which is the constant LIBXML_NOEMPTYTAGS. This option makes sure that you do not end up with <tag /> but instead, <tag></tag>. This can make things easier if you need more predictable text to perform other changes on later.

He also noticed some other changes that the option made in his XML documents, specifically a size increase issue with spaces. Code samples are included to show these differences.

1 comment voice your opinion now!
dom extension savexml charset libxml2 emptytags


blog comments powered by Disqus

Similar Posts

Benjamin Schneider's Blog: Use PHP's Tidy extension to validate your (X)HTML markup

PHPClasses.org: Lately in PHP, Episode 26 - Accelerating PHP 5.4 with updated PHP cache extensions

Chris Jones' Blog: PHP 5.3.8 RPMs are on oss.oracle.com

Abhinav Singh's Blog: PHP tokens & opcodes: 3 useful extensions for understanding the Zend Engine

Lukas Smith's Blog: YAML and PHP


Community Events





Don't see your event here?
Let us know!


threedevsandamaybe interview introduction list tips symfony voicesoftheelephpant podcast laravel code deployment bugfix series community language zendserver release api conference framework

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework