[TYPO3-dev] t3div_lib::array2xml problem when encounters multiples of the same tag
Dmitry Dulepov
typo3 at fm-world.ru
Mon Jan 2 09:15:39 CET 2006
Hi!
Brice Bernard wrote:
> Hi all and happy new year 2006!
>
> As Sebastian Kuerfuest advised me, I also post this bug to the dev list (not
> only the bug tracker)... but you still can find it there
> http://bugs.typo3.org/view.php?id=2149
>
> when parsing this xml code (taken as an example from php.net):
>
> <?xml version="1.0"?>
> <moldb>
>
> <molecule>
> <name>Alanine</name>
> <symbol>ala</symbol>
> <code>A</code>
> <type>hydrophobic</type>
> </molecule>
>
> <molecule>
> <name>Lysine</name>
> <symbol>lys</symbol>
> <code>K</code>
> <type>charged</type>
> </molecule>
>
> </moldb>
>
> we have this array :
>
> Array
> (
> [molecule] => Array
> (
> [name] => Lysine
> [symbol] => lys
> [code] => K
> [type] => charged
> )
> )
>
> The tags are overwriting it would be great to obtain this instead (when
> multiple tags...) :
Use
<molecule index="0">
Dmitry.
More information about the TYPO3-dev
mailing list