[Typo3-dev] suggestion for t3lib_div::xml2array()
Kasper Skårhøj
kasper at typo3.com
Sat Mar 27 23:29:25 CET 2004
I was talking about <numIndex index="0">, not <item numIndex="0">
The tag "numIndex" could be anything, doesn't matter, hence no reason to
"support" it in xml2array().
- kasper
On Sat, 2004-03-27 at 22:57, Martin T. Kutschker wrote:
> Kasper Skårhøj wrote:
> > I don't get it; you say it is supported only in one of the functions but
> > I say to you jthat the other function don't care about it and doesn't
> > have to know about it. Whats the fuss? Can you prove that it does not
> > work also because that would be interesting since it works fine with me.
>
> This is part of the flexform configuratoin of gsi_whoisonline.
>
> <T3DataStructure>
> <sheets>
> <sheet index="sDEF">
> <ROOT>
> <TCEforms>
>
> <sheetTitle>LLL:EXT:gsi_whoisonline/locallang_db.php:tt_content.pi_flexform.sheet_general</sheetTitle>
> </TCEforms>
>
> <type>array</type>
>
> <el>
> <element index="order">
> <TCEforms>
>
> <label>LLL:EXT:gsi_whoisonline/locallang_db.php:tt_content.tx_gsiwhoisonline_order</label>
> <config>
> <type>select</type>
> <items>
> <item numIndex="0">
> <label
> numIndex="0">LLL:EXT:gsi_whoisonline/locallang_db.php:tt_content.tx_gsiwhoisonline_order.I.0</label>
> <pos numIndex="1">2</pos>
> </item>
> <item numIndex="1">
> <label
> numIndex="0">LLL:EXT:gsi_whoisonline/locallang_db.php:tt_content.tx_gsiwhoisonline_order.I.1</label>
> <pos numIndex="1">2</pos>
> </item>
>
> <item numIndex="2">
> <label
> numIndex="0">LLL:EXT:gsi_whoisonline/locallang_db.php:tt_content.tx_gsiwhoisonline_order.I.2</label>
> <pos numIndex="1">2</pos>
> </item>
> </items>
> </config>
> </TCEforms>
> </element>
> </ROOT>
> </sheet>
> </sheets>
> </T3DataStructure>
>
> This works fine <sheet index="sDEF">
> This doesn't work <item numIndex="0">
> (using n0 at this point works though)
>
> Tested with typo3_src-3.6.0RC2_220304.tgz but as far as I see the code
> in CVS is the same.
>
> What can I tell you more. I am and was talking about xml to array
> conversion all along: that's xml2array().
>
> Masi
>
> _______________________________________________
> Typo3-dev mailing list
> Typo3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
--
Best regards
- kasper
---------------
"Zero MS-gravity" - finally migrated to Linux!
More information about the TYPO3-dev
mailing list