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
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
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)
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.
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
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
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
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
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
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:
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
:[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
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
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:
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
15 matches
Mail list logo