Relationship between ASP and XML

Source: Internet
Author: User
1. What is XML?

XML is only a data storage format, which is a text format (although the XML specification also provides a solution to store binary data ).

In fact, many text formats can be used to store data, such as. ini files that are familiar to everyone. Many of my friends are learning C language or basi.C LanguageSometimes, you may need to store the source data or the final result in a text file.ProgramIn the process of writing this program, the programmer creates a custom data format. The XML format itself is also a data storage format, which is essentially no different from the data file you defined at the time, but the only (and most important) difference is: XML format is widely accepted and widely supported, and the data file you create is only supported by one or two programs you write.

2. What does XML do?

XML is only used to store data. In addition, it does not do anything.

Although XML does not do anything, It is a unified format, which is supported on UNIX, Macintosh, or Windows platforms.

If Java is a cross-platform programming language, XML is a cross-platform data format. It is precisely for this reason that these two cross-platform things are so closely integrated that most of the XML applications I saw a few years ago were implemented using Java technology. However, many other languages (such as C #, Perl, and Python) also support XML well.

Unification will inevitably bring great benefits: There are many technical solutions to support and expand it, such as Dom, XSLT, SVG, fig, soap, cocoon, xsp and so on.

3. XML does not do anything

XML is not responsible for running any program, nor for data representation. The data format can be implemented through XSL or CSS. The running program will naturally be implemented in programming languages such as ASP and Java, while XML does not care about anything except data storage.

4. Relationship between XML and ASP

ASP is an XML user. XML provides a data storage format for ASP and other technical solutions for calling other technical solutions, including ASP. The relationship between them is so simple.

5. Is it ASP's credit for "no refreshing?

"No refreshing" is not the credit of ASP.
ASP is used to control the backend, while no refreshing is required by the Client technology. Generally, JavaScript will do this. Of course, it doesn't matter if you have to use VBscript, but the cost is that browsers like Mozilla and Firefox will not support it.

6. Relationship between XML and databases

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

When the data volume is small, the database engine can read and write data more efficiently than text files. However, we can imagine the time required to read and write a record in such a database when the data volume in the database is large, and reading and writing a small XML file, the former requires a large amount of server resources. Therefore, we can use XML as a lightweight small database to cache data.

7. Can XML replace databases?

Of course, the answer is no. On the contrary, databases cannot 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.