Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Sep 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    XML Document Creation

    Hi guys, does anyone know how I can write a script in ASP to output XML to the browser? I have to do this without the File System Object however.

    Thanks in advance!

  • #2
    Senior Coder Spudhead's Avatar
    Join Date
    Jun 2002
    Location
    London, UK
    Posts
    1,856
    Thanks
    8
    Thanked 110 Times in 109 Posts
    Quote Originally Posted by the very first Google result for 'ASP write XML'
    <%
    response.ContentType="text/xml"
    response.Write("<?xml version='1.0' encoding='ISO-8859-1'?>")
    response.Write("<note>")
    response.Write("<from>Jani</from>")
    response.Write("<to>Tove</to>")
    response.Write("<message>Remember me this weekend</message>")
    response.Write("</note>")
    %>
    Make sure you've got the content type set to "text/xml". That's the important bit. Well, that and the XML.


  •  

    Posting Permissions

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