Index: xmlsitemap/xmlsitemap.xmlsitemap.inc
===================================================================
--- xmlsitemap.xmlsitemap.inc	2010 Oct 18 20:17:53 1.5.2.7
+++ xmlsitemap.xmlsitemap.inc	2010 Nov  4 15:54:37
@@ -162,6 +162,18 @@
 
     return $return;
   }
+  /**
+     * Fallback method for writeRaw, introduced in PHP 5.2
+     *
+     * @param string $text
+     * @return string
+     */
+  public function writeRaw($text) {
+    if (method_exists($parent, 'writeRaw')) {
+      return $parent->writeRaw($text);
+    }
+    return $this->text($text);
+  }
 }
 
 class XMLSitemapIndexWriter extends XMLSitemapWriter {
