[TYPO3-dev] t3div_lib::array2xml problem when encounters multiples of the same tag

Brice Bernard brikou at gmail.com
Mon Jan 2 12:54:17 CET 2006


 I know <molecule index="0"> works but I cannot use it because I can't
modify the xml... I just retrieve this xml code.

2006/1/2, Dmitry Dulepov <typo3 at fm-world.ru>:
>
> 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.
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
>



--
- Brice -




More information about the TYPO3-dev mailing list