|
I think you are towardsing to the wrong direction.
the main function u have to change is the arraytransform in the includes..
find
$xmlTEXT .= "<$key>".getValue($value, $item, $option)."</$key>";
change to:
$xmlTEXT .= getValue($value, $item, $option).";";
find
$xmlTEXT.="<$check[0]>"; arraytransform($value,$item,$option); $xmlTEXT.="</$check[0]>";
change to:
arraytransform($value,$item,$option); $xmlTEXT.=";";
and do the same with the rest of the $xmlTEXT.=.... within the function
then in the export.php
find (twice!)
$xmlString.= "<$orderTXT>".array2xml($currentsample[$ordersTXT][$orderTXT])."</$orderTXT>";
replace to:
$xmlString.= array2xml($currentsample[$ordersTXT][$orderTXT])."\n";
find:
$xmlString = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?><$ordersTXT>".$xmlString. "</$ordersTXT>"; $myFile = "export/".$filename; $fh = fopen($myFile, 'w'); fwrite($fh, formatXmlString(removeEmptyTags(removeEmptyTags($xmlString)))); fclose($fh);
replace to:
$myFile = "export/".$filename; $fh = fopen($myFile, 'w'); fwrite($fh, $xmlString); fclose($fh);
this is only the part of the work (a big part )
i hope u understand the idea…
other idea:
or if u no more about the preg_replace.. u do not change anything only at the last step before u write to file
(fwrite($fh, formatXmlString(removeEmptyTags(removeEmptyTags($xmlString))));)
u just replace the
“</$orderTXT>” to \n
and
<...> to ;
etc etc etc
it is only playing with the string nothing else
|