Hello i am using 1.3

I am trying to get this format from my array.

array(
    'Response' => array(
      'Sms' => 'Thank you!',
    )
  )

<response>
<Sms>Thank you!</Sms>
</response>

but after trying (see below) I can't get that output. Is there a way to do 
this?


<?php 
echo $this->Xml->header(); 
echo $this->Xml->serialize($response); 
?> 

<?xml version="1.0" encoding="UTF-8" ?>
  <response Sms="Thank you!" />

and

<?php
echo $this->Xml->header();
echo $xml->serialize($response, array('format' => 'tags'));
?>


<?xml version="1.0" encoding="UTF-8" ?>
- <response>
- <Sms>
- <![CDATA[ Thank you!
  ]]>
  </Sms>
  </response>

Thanks Robert

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to