PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » XML » XML_Serializer » Bug #2920

Replace Entities

Details

Request #2920Replace Entities
Submitted2004-12-08 14:01 UTC
Fromglonak at eurodns dot com
Assignedschst
StatusClosed
PackageXML_Serializer
PHP Version5.0.2
OSGentoo Linux
Roadmaps(Not assigned)

Comments

[2004-12-08 14:01 UTC] glonak at eurodns dot com

Description:
------------
XML_Serializer version 0.13

The XML:Util class allows to choice to replace entities or not.
So I add an option 'replaceEntities' => true
in the _defaultOptions array.

And I modify the next lines :
function _serializeValue() :
line 334 : $xml = $this->_createXMLTag($tag);
becomes : $xml = $this->_createXMLTag($tag, $this->options['replaceEntities']);

function _serializeArray()
line 452->455
$tmp .= $this->_createXMLTag(array(
'qname' => $key,
'attributes' => $atts,
'content' => $value )
);

become :
$tmp .= $this->_createXMLTag(array(
'qname' => $key,
'attributes' => $atts,
'content' => $value ),
$this->options['replaceEntities'
);

Thanks to add it in your next version of the XML_Serializer