I have installed the GSitemap and get this error:
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.

--------------------------------------------------------------------------------
XML document must have a top level element. Error processing resource 'http://www.cyprusxyz.com/sitemap.xml'.

http://www.cyprusxyz.com/sitemap.xml

It all appears to be installed correctly.

CommentFileSizeAuthor
#3 diff_7.txt370 bytesdave_b

Comments

fmmribeiro’s picture

I've looked at your site map, and it works fine. Did you do anything . I have the same error

rimma’s picture

Version: 5.x-1.0 » 5.x-1.x-dev

Same problem here.

"The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
XML document must have a top level element. Error processing resource"http://example.com/sitemap.xml""

Could you give some advice?
Thanks.

dave_b’s picture

StatusFileSize
new370 bytes

I ran into this problem when running Drupal under Apache on Windows. I tracked it down to the tmp path name generation for the sitemap cache files. The module uses the result of getenv('HTTP_HOST') to build the tmp path name. If your host name contains a port number, i.e., hostname:8080, then the path name will be generated with a colon which is not valid on Windows. The cache file creation fails and the nothing is returned. The attached patch fixed the problem for me. It may not be the best way to fix it. I'm ultimately deploying on Unix so I didn't put a whole lot of thought into it.

darren oh’s picture

Title: The XML page cannot be displayed » doesn't work with http://exemple.com:8000/sitemap.xml
Status: Active » Needs review
darren oh’s picture

Status: Needs review » Fixed

Fixed in CVS commit 83400.

Anonymous’s picture

Status: Fixed » Closed (fixed)