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.
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.
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
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
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
I must be really dumb..
Thanks PeterD :)
C.
Sometimes you just overlook the obvious ;-)
is working on a reply...