Bad Google RSS

2006-06-09 Thread Howard Owens
I’ve tried XMLParse() and CFWDDX … Google’s RSS newsfeed doesn’t appear to be correct XML/RSS, which I find hard to believe http://news.google.com/news?q=%22Abu+Mussab+al-Zarqawi%22ie=UTF-8output=rss Has anybody run into this before? What to do about it? H.

Re: Bad Google RSS

2006-06-09 Thread Rob Wilkerson
What error message do you get? I can subscribe to this feed in my parser just fine (whose first step is an XMLParse()). I assume you're making a CFHTTP call to retrieve the content? Check that content to see whether whitespace - or any other character data - is being introduced before the

Re: Bad Google RSS

2006-06-09 Thread Howard Owens
The error is: An error occured while Parsing an XML document. The element type meta must be terminated by the matching end-tag . At this point: cfset xmlFile = xmlparse(cfhttp.filecontent) What error message do you get? I can subscribe to this feed in my parser just fine (whose first

Re: Bad Google RSS

2006-06-09 Thread Rob Wilkerson
Aha. You're using a devnet version of CF. On 6/9/06, Howard Owens [EMAIL PROTECTED] wrote: The error is: An error occured while Parsing an XML document. The element type meta must be terminated by the matching end-tag . At this point: cfset xmlFile = xmlparse(cfhttp.filecontent)

Re: Bad Google RSS

2006-06-09 Thread Rob Wilkerson
Sorry. Hit send too soon. The devnet version of ColdFusion introduces a meta tag that identifies itself as a devnet version. That meta tag is placed within the head (beginning with v7.0) of HTML documents, but since XML docs don't have that tag CF just puts it in at the top of the document.

Re: Bad Google RSS

2006-06-09 Thread Howard Owens
I get the same error using the RE below. I know just enough RE at this point to understand what you're suggesting, but not enough to fix it -- it's apparently not stripping out everything above the declaration tag. H. See if you can strip it before trying to use the content: cfset

RE: Bad Google RSS

2006-06-09 Thread Munson, Jacob
Have you cfdumped cfhttp.fileContent to see what's there? Might be something else that's messing you up. -Original Message- From: Howard Owens [mailto:[EMAIL PROTECTED] Sent: Friday, June 09, 2006 1:23 PM I get the same error using the RE below. I know just enough RE at this

Re: Bad Google RSS

2006-06-09 Thread Rob Wilkerson
Howard, if you'll send my your cfhttp call, I'll take a look. Shouldn't take long. On 6/9/06, Howard Owens [EMAIL PROTECTED] wrote: I get the same error using the RE below. I know just enough RE at this point to understand what you're suggesting, but not enough to fix it -- it's apparently

Re: Bad Google RSS

2006-06-09 Thread Howard Owens
Ah, good suggestion ... I'm not actually getting the RSS feed. I'm getting: title403 Forbidden/title . Your client does not have permission to get URL Google is blocking my application for some reason. H. Have you cfdumped cfhttp.fileContent to see what's there? Might be

RE: Bad Google RSS

2006-06-09 Thread Ben Nadel
PROTECTED] Sent: Friday, June 09, 2006 3:47 PM To: CF-Talk Subject: Re: Bad Google RSS Ah, good suggestion ... I'm not actually getting the RSS feed. I'm getting: title403 Forbidden/title .. Your client does not have permission to get URL Google is blocking my application for some reason. H

RE: Bad Google RSS

2006-06-09 Thread Munson, Jacob
Actually, Google doesn't like IE, use this one instead: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4 Just kidding! Sorry, it's Friday afternoon, I couldn't resist. :) -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent:

RE: Bad Google RSS

2006-06-09 Thread Dave Francis
Silly idea, but couldn't you just add a /meta to the end of the doc to make it legit XML? -Original Message- From: Howard Owens [mailto:[EMAIL PROTECTED] Sent: Friday, June 09, 2006 3:23 PM To: CF-Talk Subject: Re: Bad Google RSS I get the same error using the RE below. I know just

RE: Bad Google RSS

2006-06-09 Thread Ben Nadel
:[EMAIL PROTECTED] Sent: Friday, June 09, 2006 4:14 PM To: CF-Talk Subject: RE: Bad Google RSS Silly idea, but couldn't you just add a /meta to the end of the doc to make it legit XML? -Original Message- From: Howard Owens [mailto:[EMAIL PROTECTED] Sent: Friday, June 09, 2006 3:23 PM To: CF

RE: Bad Google RSS

2006-06-09 Thread Ben Nadel
Hey man, nothing like a little Friday laughs ;) ... Ben Nadel www.bennadel.com -Original Message- From: Munson, Jacob [mailto:[EMAIL PROTECTED] Sent: Friday, June 09, 2006 4:05 PM To: CF-Talk Subject: RE: Bad Google RSS Actually, Google doesn't like IE, use this one

Re: Bad Google RSS

2006-06-09 Thread Howard Owens
That did the trick. Thanks. H. You have to put in a standard User Agent like: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727) When doing the CFHTTP otherwise Google blocks it. ~| Message:

RE: Bad Google RSS

2006-06-09 Thread Dave Watts
Silly idea, but couldn't you just add a /meta to the end of the doc to make it legit XML? No, probably not. You can only have one root element within a well-formed XML document. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber