Displaying XML file

Results 1 to 2 of 2

Thread: Displaying XML file

  1. #1
    Join Date
    Dec 1969

    Default Displaying XML file

    I am generating a XML file (a.xml) and would want to display the same in the XML format in the browser window. Response.Redirect("a.xml") displays the large chunk of data as paragraphs but not in the XML format.<BR><BR>Could anyone tell me how to do that ? Thanks.

  2. #2
    Join Date
    Dec 1969

    Default RE: Displaying XML file

    At the top of your ASP page, before you write out any XML data, put this:<BR><BR>Response.ContentType = "text/xml"<BR><BR>The browser should now display it properly.<BR><BR>Craig.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts