News:

This week IPhone 15 Pro winner is karn
You can be too a winner! Become the top poster of the week and win valuable prizes.  More details are You are not allowed to view links. Register or Login 

Main Menu

Generating XML with ASP

Started by ben2ong2, October 06, 2006, 03:51:46 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

ben2ong2

XML can be generated on a server without any installed XML software.
To generate an XML response from the server - simply write the following code and save it as an ASP file on the web server:
<%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>")%>
Note that the content type of the response must be set to "text/xml".
See how the ASP file will be returned from the server.
If you don't know how to write ASP, please visit our ASP tutorial

You are not allowed to view links. Register or Login
You are not allowed to view links. Register or Login