From 2083a07e3f6785e13ef8a1a0d36a284f7828f2f3 Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Sun, 3 May 2020 22:40:48 +0300 Subject: [PATCH] Add missing image namespace XML header --- pysitemap/format_processors/xml.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pysitemap/format_processors/xml.py b/pysitemap/format_processors/xml.py index 9eea948..fe2ea05 100644 --- a/pysitemap/format_processors/xml.py +++ b/pysitemap/format_processors/xml.py @@ -15,7 +15,8 @@ class XMLWriter(): await writer( '\n') + ' xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"' + ' xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">\n') await aiodf.fsync() for data in urls: