Your browser will not show the tags, try to use echo htmlentities ($xml); so you can see the content including the tags! Enjoy, John
On Dec 17, 12:38 pm, Hanif <[email protected]> wrote: > Hey everyone, > > Here is my controller code. > > function info() > { > $xml= '<dialer>'; > $xml+='Hanif'; > $xml+= '</dialer>'; > > echo $xml; > } > > I want to return xml data like this <dialer>Hanif</dialer>. But it > returns only Hanif. > > Now please help me. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
