I have a similar problem, though using WDDX files. The
problem strangely occurs only on one server and not
the other. The error is a syntax error and it happens
when I try to fetch a file from moreover.
Any pointers?
-----
Error Occurred While Processing Request
Error Diagnostic Information
XML parsing error: syntax error (error code 2, line 1,
column 0, buffer offset 0)
The error occurred while processing an element with a
general identifier of (CFWDDX), occupying document
position (15:3) to (15:76).
--- "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> i encountered the same problem quite some time ago.
> And in my persual of
> solution to this i found some answers. maybe those
> can help you.
> 1. If the extension of the xml file you are trying
> to read is changed to
> ..txt or .cfm or anyother ascii format cfhttp will
> read the file
> successfully.
> 2. If the file is residing on another server where
> you cannot file ext then
> you can either try using mime type in cfhttp but i
> dunno if it works
> otherwise you can read the file and write the
> contents to a temporary file
> on yours server and then read the file using cffile.
>
>
>
> -----Original Message-----
> From: Dave Watts [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 06, 2001 12:00 AM
> To: CF-Server
> Subject: RE: Reading an XML file with CFHTTP
>
>
> > I am trying to render an XML file but first I need
> to read it
> > using CFHTTP. While trying to do so, CFHTTP
> returns the following:
> >
> > "The requested file is not ASCII text and can not
> be rendered."
> >
> > The problem is that I cannot do anything with the
> variable returned by
> > CFHTTP, because it contains the specific text that
> I mentioned above.
>
> With certain versions of CF, if you retrieve content
> from a remote server,
> but that server doesn't explicitly label it as a
> text MIME type, you won't
> be able to reference it with CFHTTP.FileContent.
> There are two solutions:
>
> 1. Upgrade to a later version. I believe this was
> fixed in CF 4.5.1 SP2.
>
> 2. Instead of simply referencing CFHTTP.FileContent,
> use CFHTTP to write it
> to a file, then use CFFILE to read that file and
> work with it as needed.
>
> If you don't want to use either of those solutions,
> you can use a
> third-party HTTP component, if you like.
>
> Finally, you'll want to make sure that you're
> actually returning what you
> think you should be getting - you can use method 2
> to check this.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> voice: (202) 797-5496
> fax: (202) 797-5444
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com