Page 1 of 1

Ampersand in Job Title - RSS Error

Posted: 23 Oct 2013, 17:00
by tradmin
Hi,

I am running into an issue where my opencats RSS feed creates a parsing error for the reader/subscriber if a job titles contains the ampersand symbol.

I'm not sure how may rss parsers see this as an issue but Google Webmaster Tools throws up an error:
"We were unable to read your Sitemap. It may contain an entry we are unable to recognize. Please validate your Sitemap before resubmitting."
and it references the line number in the feed that has a job title with the ampersand symbol. If I remove the ampersand from the job title the parsing error goes away. I have suggested to my team to find alternatives to the ampersand until a fix is found.

Has anyone run into this issue? Were you able to find a solution? It seems that I need to use some sort of escape character for the ampersand but i don't know what it would be or how to implement such a function programatically.

Thanks!

Re: Ampersand in Job Title - RSS Error

Posted: 26 Oct 2013, 09:44
by RussH
Hiya,

sounds more like a sitemap issue - http://www.sitemaps.org/en_GB/faq.html#faq_xml_encoding

That link has a script that escapes them - before you submit your sitemap. Should fix your problem