Thanks for your response Ray, I tried the second of your two ideas because it meant I didn't have to change any other code or start handling the XML myself.
It works perfectly now, thank you so much for your help (again) :) On 6 August 2013 12:59, Raymond Camden <raymondcam...@gmail.com> wrote: > > Another option is to remove the comment from the source XML. Unfortunately, > cffeed doesn't let you source via a string, so you have to save it still. > > <cfset u = " > http://www.computerweekly.com/rss/All-Computer-Weekly-content.xml"> > > <cfhttp url="#u#"> > <cfset xml = cfhttp.fileContent> > <cfset xml = rereplace(xml, "<!-- .*? -->", "")> > <cfset fileWrite("ram://feed.xml", xml)> > <cffeed source="ram://feed.xml" query="entries"> > <cfdump var="#entries#"> > > > > On Tue, Aug 6, 2013 at 6:56 AM, Raymond Camden <raymondcam...@gmail.com > >wrote: > > > Just dump cffeed and switch to cfhttp. > > > > <cfset u = " > > http://www.computerweekly.com/rss/All-Computer-Weekly-content.xml"> > > <cfhttp url="#u#"> > > <cfset xml = cfhttp.fileContent> > > <cfdump var="#xmlParse(xml)#"> > > > > You'll have to work with the XML by hand of course. > > > > > > On Tue, Aug 6, 2013 at 5:35 AM, Edward Chanter <firew...@cc.uk.com> > wrote: > > > >> > >> We recently upgraded to CF10 and a small app we use for importing RSS > >> feeds > >> seems to be rejecting certain feeds that worked perfectly fine in CF8. > >> I've > >> put details of the feeds and errors below. > >> > >> I've googled the problem and saw a blog from Ben Nadel about this issue > >> when using xmlParse() relating to the byte-order-mark. But it doesn't > >> really help me when using cffeed. I don't control the RSS feeds so have > no > >> way to change their syntax to make them work with CF. > >> > >> I'm just wondering if anyone else has encountered this problem with > cffeed > >> in CF10 and knows of a solution? > >> > >> The RSS feeds causing problems: > >> http://www.computerweekly.com/rss/All-Computer-Weekly-content.xml > >> http://www.nojitter.com/rss > >> http://www.zdnet.com/news/rss.xml > >> > >> They all return the exact same error: > >> structDetailError: Invalid XML: Error on line 1: Content is not allowed > in > >> prolog.MessageUnable to parse the feed: Either source specified is > invalid > >> or feed is > >> > malformed.StackTracecoldfusion.syndication.FeedReader$FeedParseSourceException: > >> Unable to parse the feed: Either source specified is invalid or feed is > >> malformed. at > >> coldfusion.syndication.FeedReader.readFeed(FeedReader.java:173) at > >> coldfusion.syndication.FeedReader.<init>(FeedReader.java:100) at > >> coldfusion.tagext.io.FeedTag.doStartTag(FeedTag.java:92) at > >> coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2799) at > >> > >> > cfimporter2ecfm1618229109._factor1(E:\domains\demo\cc\wwwroot\Simba\news_rss\importer.cfm:182) > >> at > >> > >> > cfimporter2ecfm1618229109._factor2(E:\domains\demo\cc\wwwroot\Simba\news_rss\importer.cfm:166) > >> at > >> > >> > cfimporter2ecfm1618229109.runPage(E:\domains\demo\cc\wwwroot\Simba\news_rss\importer.cfm:1) > >> at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:244) at > >> coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:444) at > >> coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at > >> coldfusion.filter.IpFilter.invoke(IpFilter.java:64) at > >> coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:428) > at > >> > >> > coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) > >> at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) > at > >> coldfusion.filter.PathFilter.invoke(PathFilter.java:112) at > >> coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at > >> coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:79) > at > >> > >> > coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) > >> at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at > >> coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at > >> coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at > >> coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at > >> coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at > >> > >> > coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:151) > >> at coldfusion.CfmServlet.service(CfmServlet.java:219) at > >> coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) > at > >> > >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) > >> at > >> > >> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > >> at > >> > >> > coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) > >> at > coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) > >> at > >> > >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) > >> at > >> > >> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > >> at > >> > >> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) > >> at > >> > >> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) > >> at > >> > >> > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) > >> at > >> > >> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) > >> at > >> > >> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) > >> at > >> > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928) > >> at > >> > >> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) > >> at > >> > >> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:414) > >> at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:204) at > >> > >> > org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539) > >> at > >> > >> > org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298) > >> at > >> > >> > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > >> at > >> > >> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > >> at java.lang.Thread.run(Thread.java:722) > >> > >> > >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356391 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm