![Serio](http://static.forosdelweb.com/fdwtheme/images/smilies/molesto.png)
Código PHP:
$resultado = mysql_query($sql,$con);
$contenido = "<?xml version="1.0" encoding="UTF-8"?>\n";
$contenido.= "<channel>\n<title>TITULO</title>\n";
while ( $row = mysql_fetch_assoc($resultado) )
$contenido.= "<item>\n<title>$row['titulo']</title>\n</item>\n";
$contenido .= "</channel>\n</rss>";
$fh = fopen('archivo.xml','w');
fwrite($fh,$contenido);