HTML and CSS Reference
In-Depth Information
<xml> (XML Data Island)
This proprietary element introduced by Microsoft can be used to insert fragments of XML
(Extensible Markup Language) data into HTML documents. This idea is generally called
data islands and natively will work only under Internet Explorer 5.0 or later. However, it
can be simulated using JavaScript and careful style sheet applications in other browsers.
Under Internet Explorer, an <xml> tag can be used to reference outside data sources using
the src attribute, or to surround XML data in the (X)HTML document itself.
Internet Explorer Syntax
<xml
id="unique alphanumeric value"
src="URL of XML data file">
...embedded XML markup...
</xml>
Events Defined by Internet Explorer
ondataavailable, ondatasetchanged, ondatasetcomplete, onreadystatechange,
onrowenter, onrowexit, onrowsdelete, onrowsinserted
Element-Specific Attribute
src This attribute references an external XML data file.
Examples
<!-- This code embeds XML data directly into a document.
All code between the <xml> tags is not HTML, but a
hypothetical example of XML. -->
<xml id="tasty">
<combomeal>
<burger>
<name> Tasty Burger </name>
<bun bread="white">
<meat />
<cheese />
<meat />
</bun>
</burger>
<fries size="large" />
<drink size="large" flavor="Cola" />
</combomeal>
</xml>
<!-- This code fragment uses the src attribute to reference an
external file containing XML data. -->
<xml src="combomeal.xml"></xml>
Search WWH ::




Custom Search