How to create CDATA tags with XML_Serializer

From: Date: Wed, 12 Jan 2005 19:13:55 +0000
Subject: How to create CDATA tags with XML_Serializer
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16897@lists.php.net to get a copy of this message
Hi, what is the best way to create CDATA when serializing an array into XML with XML_Serializer? If it's done manually by using a string like <![CDATA[test]]> the < and > are converted to their respective html special chars. How can this be avoided? Applying html_entity_decode() as the encode function doesn't help as htmlspecialchars() seems to be applied afterwards. Any ideas? Thanks and best regards, Torsten Roehr

« previous php.pear.general (#16897) next »