Perhaps it's the stylesheet?

<?xml-stylesheet title="XSL_formatting" type="text/xsl"
href="/shared/bsp/xsl/rss/nolsol.xsl"?>

Try using resolveurl = "yes" in your CFHTTP tag.

On 8/21/06, Ian Vaughan <[EMAIL PROTECTED]> wrote:
> I am now getting another xml error after getting rid of the last message
> when trying to consume an rss feed.
>
> The new error is
>
> An error occured while Parsing an XML document.
> White spaces are required between publicId and systemId.
>
> The error occurred in F:\xmlrss.cfm: line 16
>
> 14 : <cfscript>
> 15 :   XMLContent = trim(cfhttp.filecontent);
> 16 :   XMLContent = XMLParse(XMLContent);
> 17 : </cfscript>
> 18 : </head>
>
> Any ideas on why it is complaining about white spaces from the code
> below?
>
> ------------------------------
> <html xmlns="http://www.w3.org/1999/xhtml";>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
> />
> <title>XML / RSS Feeds</title>
> <cfscript>
>   URLToPull  =
> "http://www.bbc.co.uk/go/homepage/int/ne/nrss/log/i/-/news/rss/newsonlin
> e_uk_edition/front_page/rss.xml";
> </cfscript>
>
> <cfhttp
> url="http://www.bbc.co.uk/go/homepage/int/ne/nrss/log/i/-/news/rss/newso
> nline_uk_edition/front_page/rss.xml"
>            method="GET"
>            timeout="15" proxyserver="ipaddress" proxyuser="user"
> proxypassword="password" proxyport="portno">
> </cfhttp>
>
> <cfscript>
>   XMLContent = trim(cfhttp.filecontent);
>   XMLContent = XMLParse(XMLContent);
> </cfscript>
> </head>
>
> <body>
> <cfoutput>
>
>     Feed provided by:<BR>
>     <a href="#XMLContent.rss.channel.image.link.xmlText#">
>        <img src="#XMLContent.rss.channel.image.url.xmlText#"
> alt="#XMLContent.rss.channel.image.title.xmlText#" border="0">
>     </a><br>
>     #XMLContent.rss.channel.title.xmlText#<BR>
>     #XMLContent.rss.channel.description.xmlText#<BR><BR>
> </cfoutput>
>
> <cfloop from="1" to="#ArrayLen(XMLContent.rss.channel.item)#"
> index="idx">
>  <hr>
>  <cfoutput>
>  <a
> href="#XMLContent.rss.channel.item[idx].link.xmlText#">#XMLContent.rss.c
> hannel.item[idx].title.xmlText#</a><BR>
>
> #ParagraphFormat(ReplaceNoCase(XMLContent.rss.channel.item[idx].descript
> ion.xmlText, "&lt;", "<", "ALL"))#
>  Author: #XMLContent.rss.channel.item[idx].author.xmlText#<BR>
>  Date: #XMLContent.rss.channel.item[idx].pubDate.xmlText#
>  </cfoutput>
> </cfloop>
> <HR>
> <cfoutput><div
> align="center">#XMLContent.rss.channel.copyright.xmlText#</div></cfoutpu
> t>
> </body>
> </html>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250544
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to