sounds like an encoding problem. check that theres no UTF-8 BOM marker in the file - you might need a good txt editor like notepad++ to do this.
check that the response content encoding from cfhttp and the cffile encoding are the same (should be utf-8) check the <?xml declaration that the encoding there matches the encoding you use in your CFFILE charset= attribute. opening in IE proves it works with the MSXML parser. You might be better off doing a dump of xmlPrase(cfhttp.fileContent) to get hopefully more detailed exception info. the other one is check for coldfusion debugging being turned off on the remote server :) stupid i know, but i must admit ive made that mistake! hth Pat On Aug 1, 4:44 pm, Haikal Saadh <[EMAIL PROTECTED]> wrote: > > An invalid character was found in text content > > That to me is saying there's something there that IE thinks is incorrect. > > Taco Fleur wrote: > > I thought opening it up in Internet Explorer is enough proof its > > valid? Happy to be proven wrong. > > > 1. while the XML is on the remote server it displays fine in IE > > 2. when the XML is parsed on local server its fine > > 3. only when written to another server with cffile is it giving an > > error in IE and when parsing. > > > On 8/1/07, *Haikal Saadh* <[EMAIL PROTECTED] > > <mailto:[EMAIL PROTECTED]>> wrote: > > > Try running the resulting output file through an XML validator to > > see if > > the XML is in fact, valid? > > > Taco Fleur wrote: > > > Hello all, > > > > I have this problem with parsing XML which I hope someone can shed > > > some light on. > > > I'm downloading the XML with cfhttp, I then parse it, and it's > > fine, > > > no errors. Then I write it to the filesystem on another machine and > > > when opening in IE I get the following error; > > > > The XML page cannot be displayed > > > > Cannot view XML input using XSL style sheet. Please correct the > > error > > > and then click the Refresh <javascript:location.reload()> button, or > > > try again later. > > > ------------------------------------------------------------------------ > > > > An invalid character was found in text content. Error processing > > > resource 'file:///X:/Data/au_com_sellmystuff/xmlImport/441... > > > > > <Site>AU</Site><Availability>Yes</Availability><Quantity>13</Quantity><Caption><... > > > > Following is the CF code that writes the file; > > > <cffile > > > action="write" > > > addnewline="no" > > > file="#variables.filePath#" > > > output="#trim( cfhttp.fileContent )#" > > > fixnewline="no"> > > > > Obviously something goes wrong in the process of saving the file to > > > the other server, but I can't figure out what? Anyone??? > > > > -- > > > ***http://www.clickfind.com.au<http://www.clickfind.com.au> > > > The new Australian search engine for businesses, products and > > services > > > *** Virtual and Dedicated Servers with registered version of > > > ColdFusion from $350 a month > > > *** ColdFusion licenses at the lowest price > > > The new Australian search engine for businesses, products and > > services > > *** Virtual and Dedicated Servers with registered version of > > ColdFusion from $350 a month > > *** ColdFusion licenses at the lowest price --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---