[Typo3-dev] suggestion for t3lib_div::xml2array()

Martin T. Kutschker Martin.T.Kutschker at blackbox.net
Sat Mar 27 22:57:45 CET 2004


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





More information about the TYPO3-dev mailing list