note 97111 added to simplexml.examples-basic
| From: | ie dot raymond at gmail dot com | Date: | Thu, 01 Apr 2010 23:07:49 +0000 |
| Subject: | note 97111 added to simplexml.examples-basic | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-167633@lists.php.net to get a copy of this message | ||
If you need to output valid xml in your response, don't forget to set your header content type
to xml in addition to echoing out the result of asXML():
<?
$xml=simplexml_load_file('...');
...
...xml stuff
...
//output xml in your response:
header('Content-Type: text/xml');
echo $xml->asXML();
?>
----
Server IP: 69.147.83.197
Probable Submitter: 64.80.245.126
----
Manual Page -- http://www.php.net/manual/en/simplexml.examples-basic.php
Edit -- https://master.php.net/note/edit/97111
Del: integrated -- https://master.php.net/note/delete/97111/integrated
Del: useless -- https://master.php.net/note/delete/97111/useless
Del: bad code -- https://master.php.net/note/delete/97111/bad+code
Del: spam -- https://master.php.net/note/delete/97111/spam
Del: non-english -- https://master.php.net/note/delete/97111/non-english
Del: in docs -- https://master.php.net/note/delete/97111/in+docs
Del: other reasons-- https://master.php.net/note/delete/97111
Reject -- https://master.php.net/note/reject/97111
Search -- https://master.php.net/manage/user-notes.php