I am adding an rss feed to my site, and am running into an XML parsing error: Syntax error This is because occasionally some of the descriptions are using characters that cause problems; in this case % How do I correct this please?
The solution depends on, how are you making your xml files ? - Manually, - Through web services provided by other sites - With a program made for you (php, perl, ...) - Any commercial application - ...
To avoid that parser error you can enclose your description into CDATA, but the parser must understand that format. Look here for more info: http://www.rssgeneral.com/cdata.html
So you need to implement a "preparser" function on you PHP side to transform all not XML characters. Example: transform "&" to "&" and so on.
Here's the feed URL: http://www.directorygold.com/rss.php It shows okay, but Feed Validator shows the problem How do I do a pre-parser function?