With Internet Explorer, XML can be embedded into HTML pages in Data Islands.
XML Embedded in HTMLThe unofficial <xml> tag is used to embed XML data within HTML.
XML data can be embedded directly into an HTML page like this:
<xml id="note">
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
</xml>
And an external XML file can be embedded like this:
<xml id="note" src="note.xml">
</xml>
Note: The <xml> tag is an HTML element, not an XML element.
Data Binding
XML Data Islands can be bound to HTML elements In the example below, an XML Data Island with an ID of "cdcat" is loaded from an external XML file ("cd_catalog.xml"). Next, the HTML table element is bound to the Data Island with the datasrc attribute, and finally the td elements are bound to the XML data with a datafld attribute inside a span element.
<html>
<body>
<xml id="cdcat" src="cd_catalog.xml"></xml>
<table border="1" datasrc="#cdcat">
<tr>
<td><span datafld="ARTIST"></span></td>
<td><span datafld="TITLE"></span></td>
</tr>
</table>
</body>
</html>