Customizing SMF > Modifications and Packages
Sitemap
bearstreet:
i wish that had been right
but it isn't
i dont understand how come it indexes 3 urls and still says parsing error
Suki:
seems like the xaml is missing a > at the end of
<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"
it should be:
<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">
Try editing the template to add the missing >
bearstreet:
where to edit template?
http://domymath.netai.net/index.php?action=sitemap;xml
but there is an > at end
Suki:
This part:
--- Code: ---<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"
--- End code ---
it has to be:
--- Code: ---<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">
--- End code ---
Please see the difference. This is why </urlset> is giving the error, because it fails to close the starting tag, there is no starting tag as far as google concerns, the W3.org validator is smarter than that and only gives a recommendation about it.
Take a look at the mod's parser to see what file to edit: Sitemap.template.php
bearstreet:
--- Quote from: Suki on August 23, 2012, 12:21:35 PM ---This part:
--- Code: ---<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"
--- End code ---
it has to be:
--- Code: ---<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">
--- End code ---
Please see the difference. This is why </urlset> is giving the error, because it fails to close the starting tag, there is no starting tag as far as google concerns, the W3.org validator is smarter than that and only gives a recommendation about it.
Take a look at the mod's parser to see what file to edit: Sitemap.template.php
--- End quote ---
--- Code: ---<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">
--- End code ---
this is exactly what I have in both of my sitemaps
http://testbear1234.site88.net/index.php?action=sitemap;xml
http://domymath.netai.net/index.php?action=sitemap;xml
UPDATE
the problem almost got fixed magically
see the screenshot
pretty ulr is enabled
and I dont know how it got resolved
just resubmitted the sitemap and it worked after i did the resubmitting for three or four times :P
don't know what is happening but now no errors
see the attachment
Navigation
[0] Message Index
[*] Previous page
Go to full version