XML instance analysis
outline:
One: Example effect
Two: Example Analysis 1. Define the new identity. 2. Establish an XML document. 3. Establish a corresponding HTML file.
XML has a wide range of applications in different fields, such as Mathml, wireless communication applications in technology, SVG in network images, etc., we focus on the application of XML on the Web. The application of XML on the web is mainly used with its powerful data operation capabilities. Generally use server-side program such as JavaScript and ASP to implement almost all applications on the network.
Consider explaining convenience, we will introduce a simple example below and does not include server-side programs. The purpose is to let you have a sensibility to XML's data operation capacity.
Ok, we first [click here] to see the effects of the instance. (Please open with IE5.0 or higher browser)
This is a simple CD record data retrieval function. You can see the information about the single CD by clicking "Previous", "Next". Such an effect we used to use two methods:
1. Use DHTML to hide data in different layers, displayed by mouse events;
2. Use the background program (such as ASP, CGI, PHP, JSP, etc.) to call the server data.
But in this example, we open the page original code, where there is no DIV of DHTML, there is no form of action, which is fully implemented with XML. Let's analyze its production process:
The first step: Define the new identity. According to the actual CD data, first create an identifier named