You may have non-printing characters.  I've seen this before as well
and I've solved it, but I can't remember how.  I'll try digging up
some of my old code and see if I can be some help.

On 3/17/07, Randy Johnson <[EMAIL PROTECTED]> wrote:
> Hi Bob,
>
> I had this happen with a couple rss feeds.   I tried trimming the feed in
> case of any white space. That did not help it so I finally gave up.  The
> weird thing is, the feeds worked fine if I put them in the RSS Reader.   I
> currently use GreatNews for My RSS reader.
>
> I did some testing with online rss validators on the url in your example, it
> was to big for the online validators to check but It did pass the xml
> validator test (Well Formed), so I assume it is a valid rss feed too.
>
> Not really much help I know :-)
>
> -Randy
>
>
>
> ----- Original Message -----
> From: "Bob Imperial" <[EMAIL PROTECTED]>
> To: "CF-Talk" <cf-talk@houseoffusion.com>
> Sent: Saturday, March 17, 2007 4:13 PM
> Subject: cfhttp/xml help
>
> > Hi Folks,
> >
> > I'm just getting started with learning the basics on pulling xml feeds
> > with
> > cfhttp and am in need of some help with an error I get with some feeds I'm
> > playing with. Here's the code block I'm working with and I get the
> > following
> > error on this feed and a couple of others...
> >
> > Content is not allowed in prolog.
> >
> > The error occurred in C:\Inetpub\wwwroot\testing\rss.cfm: line 10
> >
> >
> > 8 : <body>
> >
> > 9 : <cfhttp url="http://www.nranews.com/rss/rss.xml"; method="GET"
> > resolveurl="No" ></cfhttp>
> >
> > 10 : <cfset MyXML=XMLParse(cfhttp.FileContent)<--- doesn't seem to like
> > this
> >
> > <cfhttp url="http://www.nranews.com/rss/rss.xml"; method="GET"
> > resolveurl="No" ></cfhttp>
> > <cfset MyXML=XMLParse(cfhttp.FileContent)>
> >
> > <!---<cfdump var =#MyXML#>--->
> > <!------>
> > <cfoutput>
> > <cfloop index="x" from="1" to="#ArrayLen(MyXML.rss.channel.item)#">
> >
> > Title: #MyXML.rss.channel.item[x].title.xmlText#  <a
> > href="#MyXML.rss.channel.item[x].link.xmlText#">click here</a>
> > #MyXML.rss.channel.item[x].description.xmlText#
> >
> > </cfloop>
> > </cfoutput>
> >
> > While this same block of code works fine using the feed from
> > http://www.tfc.edu/radio/podcasting/music.xml
> >
> > I'm confused here, any help in understanding this is appreciated!
> >
> > Bob
> >
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272932
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