On the relationship between ASP and XML

Source: Internet
Author: User
XML 1, what is XML?

XML is just a data storage format, a format that is text (although the XML specification also provides a solution for storing binary data).

In fact, there are many text formats that can be used to store data, such as everyone knows. INI file. A lot of friends in the beginning of the C language or basic language, sometimes the source data or the final result may need to be stored in a text file, the format of course by the person who wrote the program, then in the process of writing the program, the programmer created a custom data format.

The XML format itself is also a format for storing data, there is no difference in nature from the data files you define at that time, but the only (and most important) difference is that the XML format is universally recognized and widely supported, and the data file you make yourself is supported by only the one or two programs you write.

2. What does XML do?

XML is just for storing data, but it does nothing else.

Although XML does nothing, it is a unified format that supports this format, both on the UNIX platform and on the Macintosh platform or Windows platform.

If Java is a Cross-platform programming language, then XML is a cross-platform data format. It is for this reason that these two cross-platform things are so tightly coupled that most of the XML applications I saw a few years ago were implemented with Java technology. But many other languages, such as C #, Perl, and Python, also support XML very well.

The great benefit of unification is that there are many technical solutions to support it and extend it, such as DOM, XSLT, SVG, VRML, SOAP, Cocoon, XSP, and so on.

3. What does XML do

XML is not responsible for running any programs and is not responsible for data representation. The manifestation of data can be implemented through XSL or CSS, the program will naturally have ASP, Java and other programming languages to do, and XML, in addition to storing data, everything else.

4, the relationship between XML and ASP

ASP is the user of XML, XML provides a data storage format for ASP and other technical solutions, which is called by other technical schemes including ASP. The relationship between them is so simple.

5, "No Refresh" is the credit of the ASP?

"No refresh" is not a credit to the ASP.

ASP is the control of the background, and no refresh is the client technology to do things. Usually this is done by JavaScript, of course, but it doesn't matter if you have to do it in VBScript, but the price is that browsers like Mozilla and Firefox won't support it.

6, the relationship between XML and database

XML can be used individually as a small database or as a cache for large and medium-sized databases such as SQL Server, Oracle, MySQL, DB2, and so on.

When the data volume is very small, the efficiency of the database engine reading and writing data is definitely better than reading and writing data through the text file. But we can imagine that when the data in the database is very large, the amount of time required to read and write a record in such a database, and read and write a volume is not very large XML file, the former need to consume a much larger server resources. So, we can use XML as a lightweight, small database to cache data.

7. Can XML replace the database?

The answer is of course not. Conversely, databases do not replace XML.



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.