I have tried all but no success.
echo();
HERE doc
but no luck
I just want to print
<XML>
<name>sam</name>
<phone>100</phone>
</xml>
Please help
how can I write xml in browser?
Moderator: General Moderators
Are you meaning, being able to put stuff between < and > without it being parsed? < or > is for actually displaying the less than or greater than sign. You question is unclear, please expand.
Edit: Are you telling it what to echo()? Try and replace stuff with what you want to output.
Edit: Are you telling it what to echo()? Try
Code: Select all
echo "stuff";
Last edited by toasty2 on Mon Sep 04, 2006 1:40 pm, edited 1 time in total.
Code: Select all
header( 'Content-Type: text/xml' );