[Zoom and narrow the comment close]
Motivation: Now we have a small example of applying XML in IE: Solve the link between dual pull ordering. Everyone is the most common possibility is to select the example of changing the city option after the province. Let's try to complete it with XML.
Some of the features mentioned in the previous introduction I have done directly with the XML XSL file. You may not be very familiar with it, so I use HMTL XML this time, I hope everyone knows more clearly - " XML can be so simple! ":)
Material: XML volume menu with 2 files: citys.xml and cityselect.htm
Role: After selecting the province, you can automatically display the corresponding city, so that users can effectively improve data interaction, so that their pages are more beautiful. Effect: Browse here: city.xml Xml version = "1.0" encoding = "gb2312"?>
Cityselect.htm
Custom Function: ChooseState (Name of the province in XML data, adding to selstate's drop-down list) Function Choosestate () {var source; var source; var source = new activXObject ('Microsoft .Xmldom '); // Create a MSXML parser instance source.async = false; source.load (source (source); // Load XML document root = source.documentelement; // Set document element is root node element Sortfield = root .selectnodes ("@ name"); // Search all node for (var i = 0; i Form source code
Because e-commerce and software development is my expertise, so I think it is still starting from the beginning of the most familiarity. So I complete some of the most commonly used functions in the website in XML. You can also!