Click to See Complete Forum and Search --> : asp generating xml


Itai Raz
04-26-2000, 12:00 PM
Hi,

I'm creating an XML code on the fly as an output of an ASP file. For some
reason the browser sometimes refuses to treat it as xml, even though when I
do "view source", I get to see perfectly legal xml (incl, the <?xml tag in
the beginning).
How can I force the browser (IE) to treat a file as XML?

Itai

Rohit Wason
04-27-2000, 01:05 AM
>How can I force the browser (IE) to treat a file as XML?

By making the "Content" of ur asp o/p as XML i.e.,
Response.ContentType = "text/xml" shud be the first statement in ur ASP

Rohit