Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.21.0

Bug #8048 Entities are not replaced in tags with attributes
Submitted: 2006-06-28 07:41 UTC
From: pear at coworld dot net Assigned: schst
Status: Closed Package: XML_Serializer (version 0.18.0)
PHP Version: 4.3.9 OS: Mandrake 9.1
Roadmaps: 0.19.0a1    
Subscription  
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
2008-05-08 17:44 UTC
Package:
Bug Type:
Summary:
From: pear at coworld dot net
New email:
PHP Version: Package Version: OS:

 

 [2006-06-28 07:41 UTC] pear at coworld dot net (Christian K)
Description: ------------ Entities are not replaced in tags which contains attributes. The XML result is invalid. Test script: --------------- options = array( "indent" => " ", "linebreak" => "\n", "defaultTagName" => "unnamedItem", "scalarAsAttributes" => false, "attributesArray" => '_attributes', "contentName" => '_content' ); $data = array( 'foo' => array( '_attributes' => array( 'version' => '1.0', 'foo' => 'bar' ), '_content' => 'test & test' ), 'schst' => 'Stephan & Schmidt' ); $serializer = new XML_Serializer($options); $result = $serializer->serialize($data); $xml = $serializer->getSerializedData(); Expected result: ---------------- <array> <foo foo="bar" version="1.0">test & test</foo> <schst>Stephan & Schmidt</schst> </array> Actual result: -------------- <array> <foo foo="bar" version="1.0">test & test</foo> <schst>Stephan & Schmidt</schst> </array>

Comments

 [2006-12-01 17:01 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!