Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

XML Feed Issues LinksSQL 2.2.0

Quote Reply
XML Feed Issues LinksSQL 2.2.0
  
I am receiving errors with the XML feed.

I am using the query string:

'http://www.mywebsite.com/...=1&query=coupons'

Error message:


The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.

A semi colon character was expected. Error processing resource 'http://www.mywebsite.com/cgi-bin/links/search.cgi?xml_feed=1&query=coupons'. Line 13, Position 65
<link>http://service.bfast.com/bfast/click?bfmid=307175&siteid=409178&bfpage=logos</link> ----------------------------------------------------------------^
Some other queries are working fine.

I am using some affiliate links, but some of the queries with affiliate links are working fine. This is an intermittent problem.


Any help would be great!

Last edited by:

mddrew01: Jun 30, 2004, 8:15 AM
Quote Reply
Re: [mddrew01] XML Feed Issues LinksSQL 2.2.0 In reply to
Thanks Alex!

The fix below also contains an escape character for the URL. There is another post about this located here
http://www.gossamer-threads.com/perl/gforum/gforum.cgi?post=221689#221689
, but it does not fix the URL:

Here is the complete code for the file - xml_search_results.xml - located in your template directory.
********************************************************************

<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="0.91">
<channel>
<title><%site_title%></title>
<link><%build_root_url%></link>
<description>DESCRIPTION OF YOUR SITE GOES HERE</description>
<language>en-us</language>
<copyright>COPYRIGHT FOR YOUR SITE GOES HERE</copyright>
<managingEditor>CONTACTEMAIL GOES HERE</managingEditor>
<webMaster>TECHNICAL EMAIL GOES HERE</webMaster>
<%loop link_results_loop%>
<item>
<title><%GT::CGI::html_escape($Title)%></title>
<link><%GT::CGI::html_escape($URL)%></link>
<description> <%GT::CGI::html_escape($Description)%></description>
</item>
<%endloop%>
</channel>
</rss>
Quote Reply
Re: [mddrew01] XML Feed Issues LinksSQL 2.2.0 In reply to
A couple of things ...

1. You might want to use RSS 2.0.

2. Fine to do html escaping for the "clean" <description> etc, but consider also offering

<content:encoded><![CDATA[
<p>Anything goes <em>here</em>.</p>
]]></content:encoded>

or
<body xmlns="http://www.w3.org/1999/xhtml">
<p>Anything goes <em>here</em>.</p>
</body>

Both methods would validate in http://feedvalidator.org

3. More info about RSS: http://slashdemocracy.org/links/Syndication/
Quote Reply
Re: [gotze] XML Feed Issues LinksSQL 2.2.0 In reply to
My xml feed is showing up blank since the LSQL 2.20 upgrade. My template looks like this. I've already have the cgi escape did something else change in the lastest LSQL? Any thoughts?

Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="0.91">
<channel>
<title><%site_title%></title>
<link><%build_root_url%></link>
<description>Christian Web Guide directory</description>
<language>en-us</language>
<copyright>COPYRIGHT 1995-2004</copyright>
<managingEditor>myemail</managingEditor>
<webMaster>myemail</webMaster>
<%loop link_results_loop%>
<item>
<title><%GT::CGI::html_escape($Title)%></title>
<link><%URL%></link>
<description><%GT::CGI::html_escape($Description)%></description>
</item>
<%endloop%>
</channel>
</rss>
my Christian web
Quote Reply
Re: [ccunet] XML Feed Issues LinksSQL 2.2.0 In reply to
Dear Alex.

i wonder if the new fix has been release for the XML feed problem.?

currently it shows the blank screen. there has been a while and has been asked quite few times
in the forum . so far i have not find the solution offered in the forum.


by the way that is the difference between version 2.20 and its previous version? it seems
only latest version has this problem.

problem details could be found here at http://www.gossamer-threads.com/...?post=273556;#273556

thank.

Quote Reply
Re: [courierb] XML Feed Issues LinksSQL 2.2.0 In reply to
Has anyone found the solution to this? I could really use some leads as to why the plugin stopped working with 2.20 and higher. RSS has become a major way of sharing info on the web so having a working RSS plugin is important.

CCUnet
my Christian web