I have a question on Sitemap.

I am able to access Sitemap of my site at http://www.mysite.com/sitemap but when I open http://www.mysite.com/sitemap.xml This URL also opens list of items in sitemap, but without the inclusion of XSL file in that.

My question is: Is http://www.mysite.com/sitemap.xml a valid URL. If so why doesn't it open properly. If no why does it open at all?

Comments

avpaderno’s picture

Status: Active » Fixed

XML Sitemap doesn't have any menu callbacks that reply to sitemap which is probably handled by Site map.
XML Sitemap doesn't use anymore the XSL style sheet because there is not reason to use it, as a XML site map is not thought to be shown to human eyes.

manishaneja’s picture

Project: XML sitemap » Sitemap
Version: 5.x-2.x-dev »
Component: xmlsitemap.module » User interface
Status: Fixed » Active

Thanks kiam for your reply, I will now look into the Sitemap section for my answers.

Anyone please if can help me.

Thanks.

manishaneja’s picture

Even at the demo URL on the Sitemap project page if I try to open http://xdeb.org/sitemap.xml the page lists the links on the sitemap, again without any XSLT. Can someone please let me know what is this for and why does it give an XML parsing error on my side?

avpaderno’s picture

The report is now passed to a different project, which doesn't handle an XML site map.

manishaneja’s picture

I think I am doing something wrong. Kiam can you please let me know how should I take the issue to appropriate place? Should I create a new issue at Sitemap project? or What is the most appropriate place to ask my question?

avpaderno’s picture

Project: Sitemap » XML sitemap
Version: » 6.x-1.x-dev
Component: User interface » xmlsitemap.module
Status: Active » Fixed

I corrected the referring project, as the question was about XML Sitemap.

Like I said, the project doesn't use anymore a XSLT, that is the reason you don't see any XSLT.
If you then ask why you can see something at http://example.com/sitemap, I can answer you that XML Sitemap doesn't handle that URL; xmlsitemap.module handles only URLs like http://example.com/sitemap.xml, or http://example.com/sitemapN.xml where N is a number.

manishaneja’s picture

OK, Kiam. Now its clear to me the whole thing. Thanks for Good Explanation. One last question, When I open following URL of mysite http://www.mysite.com/sitemap.xml I get the following error:
XML Parsing Error: no element found
Line Number 1, Column 1:
[Followed by the Carrot Sign: ] ^
What could be the cause of this. Is there something in the content that conflicts to change the XML returned? because it was working fine on my local server before adding some more content.

avpaderno’s picture

Status: Fixed » Active

What is the address of the web site where you are seeing this issue?

manishaneja’s picture

Kiam I can't mention here the Name of the Site. Just if you have seen such an error and could give me some idea, it would be great.

avpaderno’s picture

The error message is too vague, and I cannot answer you if I don't try to access the site map.
Without to know more, I would suggest you to uninstall the project modules, be sure the database tables are really removed, and remove the content of the directory containing the XML Sitemap modules; reinstall then the modules.

If this doesn't work, I cannot help you without to see what happens if I try to access the site map.

manishaneja’s picture

Thanks Kiam, I will just follow the steps and let you know if this solves the problem.

Anonymous’s picture

@manishaneja: Have you tried different browsers? Have you tried clearing the browser cache?

avpaderno’s picture

Status: Active » Fixed

I am setting this report to fixed as it has not received any feedbacks from about two weeks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.