PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » XML » XML_Serializer » Bug #2650

Multiple key attributes

Details

Request #2650Multiple key attributes
Submitted2004-10-29 21:52 UTC
Fromylf at xung dot org
Assignedschst
StatusClosed
PackageXML_Serializer
PHP Version4.3.4
OSLinux Debian
Roadmaps(Not assigned)

Comments

[2004-10-29 21:52 UTC] ylf at xung dot org

Description:
------------
It would be very nice if the XML_Unserializer 'keyAttribute' option could also be passed an associative array of tag/attribute couples.

with a value of array ('tag1' => 'attr1', 'tag2' => 'attr2')

an xml document like :

<root>
<tag1 attr1='A'>
<tag2 attr2='B'> cdata </tag2>
</tag1>
</root>

would produce :

array ('A' => array ('B' => 'cdata'));