Relationship Between Asp and XML

Source: Internet
Author: User
1. what is XML? XML is just a data storage pattern, which is a text (although the XML specification also provides a solution to store binary data ). In fact, there are many text patterns that can be used to store data.

1. what is XML?

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

In fact, there are a lot of text patterns that can be used to store data, such as the. ini file that everyone is familiar with. INI files. Many of my friends may sometimes need to store the source data or the ultimate result in a text file when they are new to C or Basic. the layout of the storage is determined by the programmers themselves, in the process of writing this program, the programmer creates a custom data pattern.

The XML format itself is also a data storage structure, which is essentially the same as the data file you defined at the time, but the only (and most important) difference is: the XML structure is widely recognized and widely supported by everyone, and the data file you make 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 supported by both the Unix platform and the Macintosh or Windows platform because it is in the same pattern.

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

The same must bring great benefits, that is, there are a lot of technical plans to support it, 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 presentation. The data performance can be achieved through XSL or CSS. the running program naturally has 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 a user of XML. XML provides a data storage pattern for ASP and other skill plans for other skill plans including Asp to be called. 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 the control of the background, while refreshing is the task of client skills. Generally, JavaScript is used to 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 this.

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 efficiency of the database engine to read and write data is better than that of reading and writing data through text files. However, we can assume that when the data volume in the database is large, it takes time to read and write a record in such a database, 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.