The Third Way---ASP message board based on XML

Source: Internet
Author: User
Frankly, I've never been very interested in ASP. If I were to write this server-side program,
I will choose JSP. So, I always want to get a cheap jsp space on the Internet; but just as Miles
The predecessors said, Liangui not a bit, let alone cheap. No way, we have to use ASP,
The main way to write a message board with ASP, as long as the Earth people will know that the most used without the outside is
is a file component and a database component, and most providers that provide ASP have disabled file components based on security.
Also some of the database components are disabled. Of course, even if these two components are not used, it does not mean that we do not
To create and modify files with scripts, we have a third way: the MSXML component.
Here's a message I wrote with the MSXML component. This procedure, the main documents are Guest.xml, guest.asp,
Include.asp, certain.asp, plus some image files, respectively, for the 1.jpg,2.jpg,...... Image
The files are placed under the PIC directory. This script has been tested in each version of the ASP, and the following are all the sources
Code and explanation, Ken, please correct me.
----------------------------------------------------------------------
1 Guest.xml This file is used to hold the message data file, equivalent to the database.
----------------------------------------------------------------------
<?xml version= "1.0" encoding= "gb2312"?>
< Yinliang's message book >
< message >
< nickname > Yinliang </nickname >
< Avatar >pic/20.jpg< from > Hubei jingmen </from >
< time &GT;2002-10-17 22:48:01</time >
< mail box >ask10@msn.com</>
< content > This is an xml-based message this </content >
</message >
< message >
< nickname > Huang Juan </nickname >
< Avatar >pic/7.jpg< from > Hubei Wuhan </from >
< time &GT;2002-10-17 22:48:01</time >
< mail box >fengzhongluwei@hotmail.com</>
< content > How are you? </content >
</message >
</Yinliang's Message book >
-------------------------------------------------------------------------
The XML file above records two messages that can be edited with any text editing tool, and if there are no grammatical errors,
Enter the file name in the browser to display a tree-like page that is unique to the XML. Because it is in the form of text, so
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.