View Full Version : XML Document Creation
bulgarian388
12-18-2006, 11:24 PM
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!
Spudhead
12-20-2006, 05:32 PM
<%
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. :thumbsup:
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.