sitemap.xml

I keep getting this error on my sitemap…

  • Leading whitespace
    We’ve detected that your Sitemap file begins with whitespace. We’ve accepted the file, but you may want to remove the whitespace so that the file adheres to the XML standard.

Ive tried changing a few things, but nothing changes with that error

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

what is generating your sitemap? a program or are you doing it manually
The error is true, there is a space at the top of the file before the opening xml tag

Here is a free sitemap generator I use on some of my sites.

GSiteCrawler
http://gsitecrawler.com/

I’ll give that a try.

Im using my web program to make the .txt file and then upload it and then rename it to .xml

I am currently trying out the gsitecreawler and it is up to 4378 URLs and counting! 8O I think it is trying to include the entire WU through this page: http://www.cavecountryweather.com/wx13.php I paused it for now until I can figure out how to have it stop at my page.

lmfao…i had the same prob…Go into the .xml file and remove each one manually. then upload the .xml file back to your site. that fixed mine.

Easy fix for gsite crawler:
click the “Filter” tab, click “add”
add your URL http://www.cavecountryweather.com/wx13.php

click “URL list” tab, click “Refresh Table” button,
highlight all your http://www.cavecountryweather.com/wx13.php URLs (you highlight many at once by click on the first one, then scroll to the last one, hold down the Shift key and click last one, they all turn yellow)
click the “Delete” button on the gsite crawler screen

now click (Re)Crawl - This Project, wait until the crawlers are idle again and then click “Refresh Table” button
Make sure all is well.
If you have the FTP settings setup in gsitecrawler you can now click “Generate - Google Sitemap-File” let it save (overwrite), then upload to FTP, then Submit to google all automatically.

I use an automatic sitemap creator it’s very easy to install. and i download it from http://gadelkareem.com/

Maurice

Ok, I think i did it correctly. I created and uploaded a sitemap.xml file. I then changed my robots.txt file to read as follows…
User-agent: *
Disallow: /log
Disallow: /xxx
http://www.evansville-weather.com/sitemap.xml

Is that all I need to do?
Bill

The link shows me this. In IE7 and FF.


2008-09-01_141358.gif

Bill,

Your xml file is not in the proper format. How did you create it?

I copied this site, and changed as I thought it was needed.
http://www.carterlake.org/sitemap.xml

Basically I just changed the url’s and the frequency. then deleted the pages that I don’t have.

You have to look at the Source of of the page, not the output of the page as you may see it when you look at it with a browser…

There are no Dashes in the “source”


sample-sitemap.txt (347 Bytes)

ahhh. my mistake. #-o I’ll remove them, and try again.

ok. Dashes are gone.

illegal space before the xml start…

`XML Parsing Error: XML or text declaration not at start of entity
Location: http://www.evansville-weather.com/sitemap.xml
Line Number 1, Column 3:

<?xml version="1.0" encoding="UTF-8" ?>

–^`

well darn it. I’ll go back and delete the spaces now.

EDIT: All spaces have been removed.
Thanks for the help guys!
Bill

Hi guys,
which metatags should i edit to have the result in attachment?
Thanks in advance,

Alessandro


Immagine.JPG

This one Alessandro:

<meta name="description" content="See live weather from the Outer Hebrides in Scotland. Includes time lapse movies, forecasts and actual weather conditions updated every few seconds.">

:wink:

Thanks Martin! :smiley: