Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Christos Vogiatzis 9 posts 25 karma points
    Mar 13, 2009 @ 14:35
    Christos Vogiatzis
    0

    Leading whitespace in sitemap XML

    Hi,

    Has anyone managed to output a sitemap for Google using version 4 with master pages, without google complaining about leading whitespace? The problem is caused by the template including the
    <@Master .../> tag. The master tag outputs an empty line, something that is not compatible with the XML standard.

    Thanks.

    Christos

  • Christos Vogiatzis 9 posts 25 karma points
    Mar 16, 2009 @ 09:57
    Christos Vogiatzis
    0

    Hi again,

    I should also note, that this problem did not exist in version 4.0 beta 1, beacause there, I could have a template without <@Master .../> tag. However in the production version the <@Master .../> tag is added automatically.

    Thanks,
    Christos

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Mar 16, 2009 @ 10:28
    Peter Dijksterhuis
    0

    You can remove the leading empty line by putting the second line in your template directly after the first line (place it all on the first line)

    HTH,
    PeterD

  • Christos Vogiatzis 9 posts 25 karma points
    Mar 16, 2009 @ 17:42
    Christos Vogiatzis
    0


    I must be really dumb..

    Thanks PeterD :)

    C.

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Mar 16, 2009 @ 17:45
    Peter Dijksterhuis
    0

    Sometimes you just overlook the obvious ;-)

Please Sign in or register to post replies

Write your reply to:

Draft