aggiungo.. "xml.php" maggiori info..
codice:
include('admin/functions.php');
connect('root','','test','localhost');
$query = 'SELECT id, author, title, body, FROM_UNIXTIME(timestamp, \'%M %D %Y\') date
FROM flash_news
LIMIT 20';
$result = mysql_query($query);
$nl = "\r\n";
echo '<?xml version="1.0" encoding="ISO-8859-1"?>' . $nl;
echo '<ROOT>' . $nl;
while($r = mysql_fetch_array($result)){
echo '<news id="' . $r['id'] . '" title="' . stripslashes2($r['title']) . '" date="' . $r['date'] . '" author="' . stripslashes2($r['author']) . '">' . $nl;
echo '<body><![CDATA[' . stripslashes2($r['body']) . ']]></body>' . $nl;
echo '</news>' . $nl;
}
echo '</ROOT>' . $nl;
?>
per ora è tutto..
è chiaro che la parte --> echo '<body><![CDATA ecc... non è corretta!! ma per ora non ho risolto..