Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

displaying XML string via ASP

Status
Not open for further replies.

rad26

Programmer
Sep 25, 2003
2
0
0
US
I have a situation where i have an ASP that calls a dll where the dll constructs a XML string and passes that string back to the asp. Now that the xml string is back to the ASP I want to display the XML in the browser which refers to a XSL to format the data.

Does anyone know how I go about doing this. So far I am only able to get the XML in a text format in the browser.

Thanks in andvance for any help with this.
 
try setting the content type on the response object...
 
Thanks for you help on this. I am a little closer now. The data is now being displayed as xml but using the IE xsl stylesheet. It isn't using the stylesheet that i specified in the xml.

any ideas anyone?

here is what i added
<% Response.ContentType = &quot;text/xml&quot; %>


Thanks
 
add this in your asp page:
<?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;<your stylesheet>&quot; ?>

I did it like that and it work.

good luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top