HI All,
i am trying to generate XML template on my report generated data. the stuff related to generate XML i keep in view page as below. <?php //example i am pushing data to $Data $Data = array('storetype' => $store['st']['store_type']); App::import('Helper', 'Xml'); App::import('Core', 'File'); $xml = new XmlHelper(); $file = $xml->header(); // We need the XML header before our data. $file .= $xml->serialize($Data, array('whitespace' => true)); // Write the file. $xmlFile =new File('/tmp' .'/filename.xml'); $xmlFile->write($file, 'w'); $xmlFile->close(); ?> for this i am getting out put as below <?xml version="1.0" encoding="UTF-8" ?> <std_class subcategorys="Cake , biscuits, dognuts" /> <std_class storetype="Checkers" /> <std_class banchcode="262" /> <std_class branchname="CC LADYSMITH - OVAL" /> <std_class bookedDates="" /> (But this is not the way i want result). i want to generate templet file example as below <report-contents> <th> <tr> <text align="center"> Sub Category-1 </text> <td> Store Type </td> <td> Branch Code </td> <td> Branch Name </td> <td> Dates Booked </td> <td align="left" Dates Available </td> </tr> </th> <tr> <td> Checkers Hyper </td> <td> 6983 </td> <td> CH HY Centurion </td> <td> </td> <td align="left" 15-02-2011,14-03-2013, </td> </tr> <tr> <td =bgclor="red'> DELI </td> </tr> </report-contents> can any one worked on this type of solution please suggest me the right way to archive. Thanks in Advance , Rakesh -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php