I want to read a MYSQL data and then output it as a XML file....
Easy right?
Well, I reduced the coding to this simplest thing:
Code: Select all
<?php
header("Content-type: text/xml");
echo "<?xml version=\"1.0\" encoding=\"utf-8\" ?>";
echo "<slide_show>";
echo "<photo>./images/DCP_0730.jpg</photo>";
echo "</slide_show>";
?>
In Firefox I get:
In IE 8 I get:XML Parsing Error: not well-formed
Location: http://liguedhockeysimule.x10hosting.com/default.xml
Line Number 7, Column 7:
echo "<slide_show>";
------^
I looked and looked, still cant seem to find the error....The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
Invalid at the top level of the document. Error processing resource 'http://liguedhockeysimule.x10hosting.com/default.xml'....
echo "<?xml version=\"1.0\" encoding=\"utf-8\" ?>";
-------------------------------------------------^
Thanks for your help,
Ara