XML files are plain text files just like HTML files.
XML can easily be stored and generated by a standard web server.
XML files can be stored on an Internet server exactly the same way as HTML files.
Start Windows Notepad and write the following lines:
Save the file on your web server with a proper name like "demofile.xml".
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:
Note: content type of the response must be set to "text/xml".
To generate an XML response from the server using PHP, use following code:
Note: content type of the response header must be set to "text/xml".
XML can be generated from a database without any installed XML software.
To generate an XML database response from the server, simply write the following code and save it as an ASP file on the web server:
This ASP transforms an XML file to XHTML on the server:
Example explained
This ASP example creates a simple XML document and saves it on the server:
Your Query was successfully sent!