In Microsoft Internet Explorer 5.0 and later, you can use XML elements to create data islands, and the data island is referenced by the HTML page, and XML data can be included in the HTML file, or it can be included in some external Document. With the XML element, we can prevent us to write trouble, if the user does not allow the script because the user is not allowed, the
Inline XML
Inline XML is included between marks and XML>, for example:
Xml version = "1.0"?> small dragon female name> 180 height> tree> Heroes Yang Bi Name> 178 height> tree> trees> xml>
Quote XML file
Use the tag to reference the external XML file, the src property can reference the local file, or you can specify a URL, the URL points to the outside server, and the data can be integrated from several different servers. The SRC attribute of the following example references the local XML file.
xml>
The file XMLData.xml contains XML data. The following example references the XML file on a remote server:
xml>
Read data from data island
Reading data from the data island is done by using the element ID attribute. By capable of receiving the HTML tag (binding the data to the HTML), we can format the data in the data island. The following example shows the contents of each XML child element in :