Posted by Carl Vondrick on 10/18/50 11:38
Brian Lee wrote:
> I've been googling for a few hours now and I can't seem to find any
> tutorials on the best way to generate xml from php... most tutorials
> tell you how to pase incoming xml xml. I'm used to using template to
> output HTML to the browser but I want to start playing with ajax and
> outputting XML to the browser anyone have any suggestions or links to
> tutorials?
Just do it the same way as you do with HTML.
But, you should always output this FIRST:
<?php
header('Content-Type: text/xml');
print '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
?>
[Back to original message]
|