A standard xml document looks as follows:
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Tags of all sorts -->
Now, an rss feed looks like:
<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="0.9.1">
<channel>
<item>
<title>Something</title>
<link>[url]http://www.url.com[/url]</link>
<description>Some description about the site</description>
</item>
</channel>
</rss>
So how is it so hard to use php to write that?
<?php
echo '<?xml version="1.0" encoding="iso-8859-1"?>'.
'<rss version="0.9.1">'.
'<channel>';
while($display = mysql_fetch_array($result)){
echo '<item>'.
'<title>'.$display['Title'].'</title>'.
'<link>'.$display['Link'].'</link>'.
'<description>'.$display['Description'].'</description>'.
'</item>';
}
echo '</channel>'.
'</rss>';
The more appropriate way would be to create an empty xml document, upload it to your server, and then fopen() and write to that file using the same guidelines as above.
~Brett