XML Sitemaps Generator

Author Topic: sitemap not validating because of & insteadof &, but still issues  (Read 13670 times)

jburnett

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
I have had a message back to say that the sitemap I created doesnt validate and so is not recognised, I look around the web and pretty much worked it out that because my url strings have '&' and not '&', this is what's causing the problems.

eg.
[external links are visible to admins only]

[external links are visible to admins only]

But in fairness when the sitemap was produced they where '&' and not '&' and when I checked the url by copy and pasting it into the address bar, some of my values being generated by the url values didnt appear.

You will see what I mean when you check the link out below and then the one below it.

[external links are visible to admins only]

in that one the page title and h1 tag contains the country and the region

if then you add & instead of the & they dont show.

[external links are visible to admins only]

My worry is that if I change all the &'s back to &amp's in the xml sitemap file to allow it to validate will it mean that those bits of data reading from the url string will not appear, as in honesty they are very important bits of SEO.

Any help will be good

Cheers

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: sitemap not validating because of & insteadof &, but still issues
« Reply #1 on: November 17, 2008, 01:31:28 PM »
Hello,

per sitemaps protocol ( http://sitemaps.org/protocol.php ) the URLs in sitemap are changed (including replacing & with & ), so that is correct - the URLs should not be directly entered in browser as is.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

jburnett

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
Re: sitemap not validating because of & insteadof &, but still issues
« Reply #2 on: November 17, 2008, 01:43:13 PM »
Hi,

could you explain a little further please. Are you saying that yes I change the '&'s' back '&'s' and then re-submit the sitemap, so that it validates correctly.

But what are your opinions on them disrupting the different SEO outputs, as basically all those country and regions in the titles and H1 tags are the point, or is is the case that its not that its the &amp's that are causing but some internal code issue.

Cheers

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2