Sitemap Warning from google

Discussion in 'Google Sitemaps' started by intruth, Sep 21, 2007.

  1. #1
    I checked out my sitemap on Google an there was a warning...
    What is Leading whitespace?

    Here is how it read...

    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.
     
    intruth, Sep 21, 2007 IP
  2. pondlife

    pondlife Peon

    Messages:
    898
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #2
    White space is tab or space characters in your file. They are saying that you have spaces or tabs at the beginning of your file.

    You should be able to edit the sitemap file with a text editor and remove the white space - then save the file and you should be OK.

    If you're on Linux / UNIX you could use sed to parse this out of your file if you're creating a new sitemap regularly:

    sed 's/^ //g' filname.xml

    (better check the syntax - not sure if it's exactly right!)

    HTH,

    p
     
    pondlife, Sep 28, 2007 IP
  3. ivenms

    ivenms Peon

    Messages:
    334
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Make a simple sitemap for your site. Don't use tabs or white space between the tags...
     
    ivenms, Sep 28, 2007 IP
  4. EMcDonell

    EMcDonell Peon

    Messages:
    85
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    How did you create your sitemap? The program I used is GSiteCrawler and it has an option to remove whitespace at the beginning. Or you could just go in and edit it yourself & remove it.
     
    EMcDonell, Oct 5, 2007 IP
  5. sachin0310

    sachin0310 Peon

    Messages:
    583
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    you can create an automatic sitemap at xml-sitemaps.com and that also according to xml standard.
     
    sachin0310, Oct 8, 2007 IP
  6. kvanput

    kvanput Peon

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    There are good freeware programs to make site maps. I don't know if I can post the name here, but you can contact me through PM for the name
     
    kvanput, Oct 9, 2007 IP
  7. twalters84

    twalters84 Peon

    Messages:
    514
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hey there,

    If your sitemap is dynamic, many dynamic programming languages have a Trim function you can use to get rid of the whitespace at the beginning of the file.

    Sincerely,
    Travis Walters
     
    twalters84, Oct 10, 2007 IP
  8. e-webtemplates

    e-webtemplates Peon

    Messages:
    355
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    use some sitemap generator to generate your sitemap. And edit your site map using dreamweaver or frontpage or some good editor
     
    e-webtemplates, Oct 12, 2007 IP
  9. Phaaze

    Phaaze Member

    Messages:
    51
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    45
    #9
    Yea, thats the easiest way if ya ask me.. Thats how I did it...
     
    Phaaze, Oct 13, 2007 IP
  10. catanich

    catanich Peon

    Messages:
    1,921
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I would get a proper site map generator that doesn't have this problem in it. There is enought to worry about from Google than this.

    Use the GSiteCrawler.
     
    catanich, Oct 25, 2007 IP