1, what is XML?
XML is just a data storage format, which is a text (although the XML specification also provides solutions for binary data).
In fact, there are a lot of text formats to store data, such as .ini files you are familiar with. Many friends sometimes need to store source data or final results in a text file in an initial C language or a Basic language, and the format stored is of course the written programs yourself, then in the process of writing this program, The programmer has a customized data format. The XML format itself is also a format that stores data, and there is no difference in this data file you defined at the time, but the only (most important) difference is: XML format is recognized by everyone and widely supported , And the data file you have made is only the one you have written.
2, what is XML?
XML is only used to store data, in addition to this, it does nothing.
Although XML does nothing, but because it is a unified format, this format is supported in the UNIX platform or under the Macintosh platform or Windows platform.
If Java is a cross-platform programming, XML is a cross-platform data format. It is precisely because of this reason, these two cross-platform things are in conjunction, and the vast majority of XML app I have seen a few years ago is achieved by Java technology. However, many languages (such as C #, Perl, Python) are also very good for XML.
Unity must bring great benefits, that is: many multi-technical solutions support it, extend it, for example: DOM, XSLT, SVG, VRML, SOAP, COCOON, XSP, etc.
3, what is XML not?
XML is not responsible for what procedures running, nor responsible for the form of performance. The form of data can be implemented by XSL or CSS, and the runtime will naturally have an ASP, Java's programming language, and XML, in addition to the data, other things will be held.
4, XML and ASP relationship
ASP is an XML user, XML provides a data storage format for ASP and other technical solutions, providing other technical solutions including ASP. The relationship between them is so simple.
5, "No refresh" is the credit of the ASP?
"No refresh" is not the credit of the ASP.
The ASP is a background of the backstage, and no refresh is what client technology is going. Usually, this will be done by JavaScript, of course, if you don't have to use VBScript to do, but the price is like Mozilla, Firefox will not support.
6, relationship between XML and database
XML can be used as a small database, or as a large and medium-sized database (such as SQL Server, Oracle, MySQL, DB2) Cache.
When the amount of data is small, the efficiency of the database engine read and write data is better than the efficiency of reading and writing data through text files. But we can imagine that when the amount of data in the database is very large, to read the time required to consume in such a database, and read and write a volume is not a very large XML file, the former needs to consume the server. The resources are much larger. So, we can cache data as a lightweight small database.
7. Can XML replace the database?
The answer is of course not. Conversely, the database cannot replace XML.
source:
http://xinsoft.blogchina.com