My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 23: sitemap index xml file malformed
9 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by leah.pod...@gmail.com, Jun 23, 2008
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

Sign in to add a comment

Powered by Google Project Hosting