<?php
header('Content-type: text/xml');
$date = date(DATE_ATOM, time());
$result .= '<?xml version="1.0" encoding="UTF-8"?>';
//$result .= '<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';
$result .= '<sitemapindex xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd"
         xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';
$result .= '<sitemap>';
$result .= '<loc>http://www.wishbowl.org/sitemap.xml</loc>';
$result .= '<lastmod>'.$date.'</lastmod>';
$result .= '</sitemap>
';
$result .= '<sitemap>';
$result .= '<loc>http://www.wishbowl.org/sitemap-user.xml</loc>';
$result .= '<lastmod>'.$date.'</lastmod>';
$result .= '</sitemap>
';
$result .= '<sitemap>';
$result .= '<loc>http://www.wishbowl.org/sitemap-blog-post.xml</loc>';
$result .= '<lastmod>'.$date.'</lastmod>';
$result .= '</sitemap>
';
$result .= '</sitemapindex>';
echo $result;
?>
