Honestly, no there are no good tutorials. I've been thinking about making one on my website alone.
If you want to use a PHP file with XML, you need to set the header content type in PHP. If you know how to write XML now, the opening brackets are the same as what PHP has, thus, you need to set the content type. With or without this, the header type in PHP must be set to XML. This same method can be used to create resized images in PHP and other types of files that still have the PHP extension regardless of them being a PHP file.
Pull the info from the database and output the data as RSS data. Here's an example:
<?php
// Set the content type for XML
header ("content-type: text/xml");
// Get some stuff from a database
$query = mysql_query("SELECT * FROM persons_table ORDER BY name") or die('Query Failed: -- error executing query--<br />' . mysql_error());
// If rows exist, fetch results
if (mysql_num_rows($query)>0)
{
// Loop results to XML file
while ($row = mysql_fetch_array($query))
{
echo '<person>';
echo '<name>' .$row['name']. '</name>';
echo '<age>' .$row['age']. '</age>';
echo '</person>';
}
}
?>
I don't know if that's a proper example but it's something. PHP 5 has built in functions for XML support, but I don't know how to use them. If you do some googling you may find some better examples.
I hope that helps some.