Browse Source

Add missing image namespace XML header

master
Pekka Helenius 4 years ago
parent
commit
2083a07e3f
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      pysitemap/format_processors/xml.py

+ 2
- 1
pysitemap/format_processors/xml.py View File

@ -15,7 +15,8 @@ class XMLWriter():
await writer(
'<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"'
' 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/sitemap.xsd">\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:


Loading…
Cancel
Save