On Tue, 26 Feb 2002, Ranga Nathan wrote: > When a CGI scripts prints an XML file to IE, it renders it as plain text!!! > But when it GETs an XML file with the xml extension it renders it with > collapse/expand view. Wonder if anyone has an angle on this. How can one > tell IE from a CGI to collaps/expand? I tried different mime types.. IE > simply seems to ignore it!!!
IE sometimes guesses mime types even in the presence of a perfectly serviceable ContentType based on file extensions. Sometimes you can fool it by using a dummy query keyvalue pair so that the last thing on the line is .xml It's a fugly kludge but hey, this is M$ software we're talking about. Try using a link something like: http://mydomain.com/cgi-bin/myxml.cgi?node=1010101&type=.xml Simon Wilcox ps. Does my M$ bias show ? :-) -- "Counterpoint the surrealism of the underlying metaphor"
