
PHP код:
<?xml version="1.0" encoding="koi8-r"?>
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN"
"http://my.netscape.com/publish/formats/rss-0.91.dtd">
<rss version="0.91">
<channel>
<title><?php echo htmlspecialchars($siteTitle) ?></title>
<description><?php echo htmlspecialchars($siteDesc) ?></description>
<link><?php echo htmlspecialchars($siteUrl) ?></link>
</channel>
<image>
<title><?php echo htmlspecialchars($imageTitle) ?></title>
<url><?php echo htmlspecialchars($imageURL) ?></url>
<link><?php echo htmlspecialchars($imageLink) ?></link>
<width><?php echo $imageW ?></width>
<height><?php echo $imageH ?></height>
</image>
<?php foreach($items as $item) { ?>
<item>
<title><?php echo htmlspecialchars($item->title) ?></title>
<link><?php echo htmlspecialchars($item->url) ?></link>
<description><?php echo htmlspecialchars($item->desc) ?></description>
</item>
<?php } ?>
</rss>