Re: cfhttp/xml help

2007-03-18 Thread Rob Wilkerson
For anyone who's interested, I've blogged the considerations/issues I
ran into (or can remember running into) when using ColdFusion to
consume a feed at
http://musetracks.instantspot.com/blog/index.cfm/2007/3/18/Consuming-an-RSS-Feed-with-ColdFusion.
 A follow-up post will detail the issues I had when displaying the
content of a feed.

On 3/18/07, Rob Wilkerson <[EMAIL PROTECTED]> wrote:
> @Bob & Randy -
>
> I cracked open some of my code and, if I was looking in the right
> place, this is what I did...
>
>  />
>
> This code strips out any character (printing or non-printing) that
> occurs before the opening "<".  In a valid feed, that opening "<"
> would mark the start of "".
>
> Hope this helps.
>
> On 3/18/07, Rob Wilkerson <[EMAIL PROTECTED]> wrote:
> > 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" 
> > > 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 : 
> > > >
> > > > 9 : http://www.nranews.com/rss/rss.xml"; method="GET"
> > > > resolveurl="No" >
> > > >
> > > > 10 :  > > > this
> > > >
> > > > http://www.nranews.com/rss/rss.xml"; method="GET"
> > > > resolveurl="No" >
> > > > 
> > > >
> > > > 
> > > > 
> > > > 
> > > > 
> > > >
> > > > Title: #MyXML.rss.channel.item[x].title.xmlText#   > > > href="#MyXML.rss.channel.item[x].link.xmlText#">click here
> > > > #MyXML.rss.channel.item[x].description.xmlText#
> > > >
> > > > 
> > > > 
> > > >
> > > > 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
> > > >
> > > >
> > > >
> > >
> > > 

~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

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


Re: cfhttp/xml help

2007-03-18 Thread Robertson-Ravo, Neil (RX)
Maybe a BOM? I know we have had some issues with them and XML etc..



"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions." 
Visit our website at http://www.reedexpo.com

-Original Message-
From: Rob Wilkerson
To: CF-Talk
Sent: Sun Mar 18 16:50:39 2007
Subject: Re: cfhttp/xml help

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" 
> 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 : 
> >
> > 9 : http://www.nranews.com/rss/rss.xml"; method="GET"
> > resolveurl="No" >
> >
> > 10 :  > this
> >
> > http://www.nranews.com/rss/rss.xml"; method="GET"
> > resolveurl="No" >
> > 
> >
> > 
> > 
> > 
> > 
> >
> > Title: #MyXML.rss.channel.item[x].title.xmlText#   > href="#MyXML.rss.channel.item[x].link.xmlText#">click here
> > #MyXML.rss.channel.item[x].description.xmlText#
> >
> > 
> > 
> >
> > 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
> >
> >
> >
>
> 



~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

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


Re: cfhttp/xml help

2007-03-18 Thread Rob Wilkerson
@Bob & Randy -

I cracked open some of my code and, if I was looking in the right
place, this is what I did...



This code strips out any character (printing or non-printing) that
occurs before the opening "<".  In a valid feed, that opening "<"
would mark the start of "".

Hope this helps.

On 3/18/07, Rob Wilkerson <[EMAIL PROTECTED]> wrote:
> 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" 
> > 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 : 
> > >
> > > 9 : http://www.nranews.com/rss/rss.xml"; method="GET"
> > > resolveurl="No" >
> > >
> > > 10 :  > > this
> > >
> > > http://www.nranews.com/rss/rss.xml"; method="GET"
> > > resolveurl="No" >
> > > 
> > >
> > > 
> > > 
> > > 
> > > 
> > >
> > > Title: #MyXML.rss.channel.item[x].title.xmlText#   > > href="#MyXML.rss.channel.item[x].link.xmlText#">click here
> > > #MyXML.rss.channel.item[x].description.xmlText#
> > >
> > > 
> > > 
> > >
> > > 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
> > >
> > >
> > >
> >
> > 

~|
ColdFusion MX7 by Adobe®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

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


Re: cfhttp/xml help

2007-03-18 Thread Rob Wilkerson
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" 
> 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 : 
> >
> > 9 : http://www.nranews.com/rss/rss.xml"; method="GET"
> > resolveurl="No" >
> >
> > 10 :  > this
> >
> > http://www.nranews.com/rss/rss.xml"; method="GET"
> > resolveurl="No" >
> > 
> >
> > 
> > 
> > 
> > 
> >
> > Title: #MyXML.rss.channel.item[x].title.xmlText#   > href="#MyXML.rss.channel.item[x].link.xmlText#">click here
> > #MyXML.rss.channel.item[x].description.xmlText#
> >
> > 
> > 
> >
> > 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


Re: cfhttp/xml help

2007-03-17 Thread Randy Johnson
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" 
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 : 
>
> 9 : http://www.nranews.com/rss/rss.xml"; method="GET"
> resolveurl="No" >
>
> 10 :  this
>
> http://www.nranews.com/rss/rss.xml"; method="GET"
> resolveurl="No" >
> 
>
> 
> 
> 
> 
>
> Title: #MyXML.rss.channel.item[x].title.xmlText#   href="#MyXML.rss.channel.item[x].link.xmlText#">click here
> #MyXML.rss.channel.item[x].description.xmlText#
>
> 
> 
>
> 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
>
>
> 

~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

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


cfhttp/xml help

2007-03-17 Thread Bob Imperial
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 : 

9 : http://www.nranews.com/rss/rss.xml"; method="GET"
resolveurl="No" >

10 : http://www.nranews.com/rss/rss.xml"; method="GET"
resolveurl="No" >

 





Title: #MyXML.rss.channel.item[x].title.xmlText#  click here
#MyXML.rss.channel.item[x].description.xmlText#



 
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


~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

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