Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

asp generating xml

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
[348 byte] By [Itai Raz] at [2007-11-9 14:54:59]
# 1 Re: asp generating xml
>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
Rohit Wason at 2007-11-11 23:33:52 >