Feature #20750
closedEnhance t3lib_div::xml2array to handle multible tags with the same name and no index attribute
0%
Description
Currently xml2array isnt capble of handling xml structures like this:
<root>
<item>..</item>
<item>..</item>
</root>
it would be nice if xml2array would return something like:
[item] => Array
(
[0] => Array ....
[1] => Array ....
....
)
A working implementation can be found at:
http://www.bin-co.com/php/scripts/xml2array/
(issue imported from #M11523)
Files
Updated by Steffen Müller over 15 years ago
I have once written a service extension, which implements the mentioned parser of Binny V A. It's not released on TER, but I have added it to this bugreport.
Happy testing
Updated by Nikolas Hagelstein over 15 years ago
Yes got my own arround as well but it would be nice if typo3 would support it by default.
Updated by Peter Klein over 15 years ago
At least write in the header for the t3lib_div::xml2array() function, that it ONLY works with ONE LEVEL of tags. That would save people a lot of time..
Updated by Alexander Opitz over 11 years ago
- Status changed from New to Needs Feedback
- Target version deleted (
0) - TYPO3 Version set to 4.3
As this report is very old, is the handling in newer TYPO3 CMS Versions (like 6.0/6.1) more like you expect it?
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed
No feedback for over 90 days.