--- xmlsitemap.xmlsitemap.inc	2010-08-29 22:31:36.000000000 -0700
+++ xmlsitemap.xmlsitemap.inc.fixed	2010-09-24 13:09:56.781403900 -0700
@@ -29,7 +29,7 @@ class XMLSitemapWriter extends XMLWriter
   function __construct(stdClass &$sitemap, $page) {
     $this->sitemap = $sitemap;
     $this->sitemap_page = $page;
-    $this->uri = xmlsitemap_sitemap_get_file($sitemap, $page);
+    $this->uri = $_SERVER['DOCUMENT_ROOT'].'/'.xmlsitemap_sitemap_get_file($sitemap, $page);
     $this->openUri($this->uri);
   }
 
