OK, hab den Header mal eingebaut, geht immer noch nicht.
Hier jetzt meine Funktion. Kann es daran liegen dass die Funktion in einer Klasse eingebunden ist? Eigentlich ja nicht.
Hier mal der Link dazu:
http://www.mkportal-support.de/index.php?ind=rss
function xml(){
global $mkportals, $DB, $mklib, $Skin, $mklib_board;
//die("A");
$rss_path_config = "mkportal/modules/rss/config.php";
include $rss_path_config;
header("Content-type: text/xml");
echo '
<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="0.91">
<channel>
<title>'.$title.'</title>
<link>'.$link.'</link>
<description>'.$description.'</description>
<language>'.$language.'</language>
<copyright>'.$copyright.'</copyright>
<image>
<url>'.$rss_logo.'</url>
<title>'.$rss_logotitel.'</title>
<link>'.$rss_logolink.'</link>
</image>';
$strSQL = "Select $domain_id, $domain_body, $domain_title From $domain_table Order by $domain_id ASC limit 15";
$query = $DB->query($strSQL);
while( $row = $DB->fetch_row($query) ) {
$res = $row[$domain_body];
$res=str_replace("%26amp;","&",$res);
$res=str_replace("&","&",$res);
$res=str_replace("%2C",",",$res);
$res=str_replace("<","<",$res);
$res=str_replace("&rt;",">",$res);
$res=str_replace(">",">",$res);
$res=str_replace("[tb:break]","<br>",$res);
$body = $res;
$res = $row[$domain_title];
$res=str_replace("%26amp;","&",$res);
$res=str_replace("&","&",$res);
$res=str_replace("%2C",",",$res);
$res=str_replace("<","<",$res);
$res=str_replace("&rt;",">",$res);
$res=str_replace(">",">",$res);
$res=str_replace("[tb:break]","<br>",$res);
$title = $res;
echo '
<item>
<title><![CDATA['.$title.']]></title>
<link><![CDATA['.$domain_link.$row[$domain_id].']]></link>';
if ($rss_showtext == '1')
echo '
<description><![CDATA['.$body.']]></description>';
echo '
</item>';
}
echo '
</channel>
</rss>';
}