Yo hice algo como esto..
   Código PHP:
    <? 
   $result=mysql_query("select * from noticias order by id DESC",$link); 
echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>"; 
echo "<noticias>"; 
while($row = mysql_fetch_array($result)){
echo "<articulo url=\"news.php?id=".$row[ID]."\" autor=\"".$row[autor]."\" new=\"".$row[noticia]."\">".$row[titulo]."</articulo>"; 
} 
echo "</noticias>"; 
?>