You are here: Reference > HTML > tags > xml

xml element

Browser support:
Defines XML data content in a HTML page.
The xml element allows authors to insert XML content directly into the document.
If you want to see the HTML tags by categories, please visit this page.
This element requires a closing tag.
JavaScript page for this element: xml.

Possible members:

Sets a unique identifier for the object.
Sets the scripting language for the current element. Use it only for the script element.
Sets the location of an associated file for an object.

Example HTML code 1:

This example illustrates the use of the xml element:
Did you find this example helpful? yes no

Example HTML code 2:

This example shows how to use the xml element to create a dynamic table in Internet Explorer:
    <xml id="movies">
        <?xml version="1.0"?>
                <name>Clark Kent</name>
                <name>Lois Lane</name>
                <name>Fred Flintstone</name>
                <name>Barney Rubble</name>
    <table width="100%" cellpadding="0px" cellspacing="2px" border="1px" datasrc="#movies" datapagesize="1" id="myTable">
                <td><span datafld="name"></span></td>
                <td><span datafld="jobtitle"></span></td>
                <td><span datafld="born"></span></td>

    <input type="button" onclick="myTable.firstPage ()" value="|< First " />
    <input type="button" onclick="myTable.previousPage ()" value="< Previous " />
    <input type="button" onclick="myTable.nextPage ()" value=" Next >" />
    <input type="button" onclick="myTable.lastPage ()" value=" Last >|" />
Did you find this example helpful? yes no

External links:

User Contributed Comments

Post Content

Post Content