Home » Web Services » Services_Amazon » Bug #7052
Forcing Enumeration On XML
Details
| Request #7052 | Forcing Enumeration On XML |
|---|---|
| Submitted | 2006-03-07 15:37 UTC |
| From | seth at pricepages dot org |
| Status | Duplicate |
| Package | Services_Amazon |
| PHP Version | 5.1.2 |
| OS | Mac |
| Roadmaps | (Not assigned) |
Comments
[2006-03-07 15:37 UTC] seth at pricepages dot org
Description:
------------
If at all possible, I would like to use the forceEnum option
on the XML_Unserializer. This would save quite a bit of
confusion and if statements. My constructor in ECS4
currently looks like this:
$xml = &new XML_Unserializer(array(
'parseAttributes' => true,
'forceEnum'=>array
('Item','Review','EditorialReview','Author')));
This makes my code much easier to write when I don't have to
decide whether each child is an array or a single item. It
will also reduce the number of bugs.
[2006-05-20 10:27 UTC] ttsuruoka at php dot net
This has been fixed in 0.5.0.
http://pear.php.net/bugs/bug.php?id=6430
Thank you.