Home » XML » XML_Serializer » Bug #2650
Multiple key attributes
Details
| Request #2650 | Multiple key attributes |
|---|---|
| Submitted | 2004-10-29 21:52 UTC |
| From | ylf at xung dot org |
| Assigned | schst |
| Status | Closed |
| Package | XML_Serializer |
| PHP Version | 4.3.4 |
| OS | Linux 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'));