FrenchFryZine / sitemap-generators

Automatically exported from code.google.com/p/sitemap-generators
0 stars 0 forks source link

sitemap index xml file malformed #23

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Version of script: 1.5
OS: unix

The opening xml tag in the generated sitemap_index file is incorrect, and
causes the whole xml file to be malformed. The opening tag reads:
<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">

instead of 

<sitemapindex
  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/siteindex.xsd">

Cause(s) of issue:

Line 1800 in sitemap_gen.py should read:
sitemap_index_header = NEWS_SITEINDEX_HEADER
instead of
sitemap_index_header = NEWS_SITEMAP_HEADER

Line 1802 in sitemap_gen.py should read:
sitemap_index_header = GENERAL_SITEINDEX_HEADER
instead of 
sitemap__index_header = GENERAL_SITEMAP_HEADER

Original issue reported on code.google.com by leah.pod...@gmail.com on 23 Jun 2008 at 8:48