RE: [PHP] xml declaration
| From: | Jay Blanchard | Date: | Fri, 13 Sep 2002 13:27:45 +0000 |
| Subject: | RE: [PHP] xml declaration | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-116271@lists.php.net to get a copy of this message | ||
[snip]
Is this the appropriate way to handle this?
<?php
echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
?>
What's everyone else do? I'm not missing something here am I?? :)
[/snip]
You can also place the XML declaration outside of the php tags. I have been
able to get proper validation both ways.
HTH!
Jay