Gossamer Forum
Quote Reply
xml results error
I'm trying to use the xml results with precongfigured links like this but I get the following error

Whitespace is not allowed at this location. Error processing resource 'http://www.mychristianweb.com/cgi-bin/guide/search.cgi?query=church&xml_feed=1'. Line 1, Position 1577

Can anyone give a fix?



CCUnet
my Christian web
Quote Reply
Re: [ccunet] xml results error In reply to
Hi,

This is a quoting problem, in that there is a bare & that is not escape. Can you confirm that your xml_search_results.xml file looks like:

<%loop link_results_loop%>
<item>
<title><%GT::CGI::html_escape($Title)%></title>
<link><%URL%></link>
<description><%GT::CGI::html_escape($Description)%></description>
</item>
<%endloop%>

I don't think the title/description are escaped.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] xml results error In reply to
Thanks,

Alex that did the trick!

CCUnet
my Christian web
Quote Reply
Re: [Alex] xml results error In reply to
Hi,



I tried changing my XML template which was not escaped at all, and now it wont find any

result - here´s my XML template:



<%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>


Can anyone help ? It was working fine except for the &-character...