And you want to add some weirdness, I changed it back to see the difference and now IE is behaving as I would expect it to either way. It is recognizing the xml with either text/xml or application/xml!
IE is just such a joy to code for. I love it so. -------------- Ian Skinner Web Programmer BloodSource Sacramento, CA -----Original Message----- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 1:57 PM To: CF-Talk Subject: RE: Getting IE to accept XML from ColdFusion Thanks, that seems to work. Now can you tell me why? Why would it be Application/XML and not text/XML? -------------- Ian Skinner Web Programmer BloodSource Sacramento, CA -----Original Message----- From: Jochem van Dieten [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 1:51 PM To: CF-Talk Subject: Re: Getting IE to accept XML from ColdFusion Ian Skinner wrote: > I'm generating XML with Cold Fusion's <cfxml> tag and then sending to the > client with a <cfcontent> tag. This works just great in Netscape, but IE > will not recognize the XML. Any suggestions on how to get it to do so? If > I view the source of IE's non-XML page save it with an XML file extension, > then view it; this also works just fine. So I'm getting valid XML, just IE > is not recognizing it. > > <cfxml variable="test"> > <parent> > <child>John</child> > <child>Jane</child> > <child>Suzy</child> > </parent> > </cfxml> > > <cfheader name="Content-Disposition" value="filename=text.xml"> > <cfcontent type="text/xml"><cfoutput>#ToString(test)#</cfoutput> How about: <cfcontent type="application/xml" reset="yes"> Jochem ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4