[Typo3-dev] t3lib_div::array2xml + php5 (WAS: Impexp + TemplaVoila's XML Datastructure field)

Stefan Beylen intsys at swissinfo.org
Wed Jun 15 15:02:08 CEST 2005


dan frost wrote:
> ...if anyone knows anything about the php5 + array2xml / xml2array bugs 
> then please tell me - I'll try to fix them today (have to!)

try this ext:

http://www.lingoist.com/T3X_sb_xml2array-0_0_0-z-200506151700.t3x
its just a class

use this in your ext:
---snip---
$catXMLPath=$conf['pathToCategoryXML'];
if(!$TplDom1 = domxml_open_file(realpath($catXMLPath))) 
trigger_error('Error parsing the file ',E_USER_ERROR);
$rootCourse = $TplDom2->document_element();
$yourArray=new tx_sbxml2array_pi1($rootCourse);

print_r($yourArray->TheArray)
---snap---

hope it helps - dont know much bout php5 though but I guess it works, 
have a try....




More information about the TYPO3-dev mailing list